IMSL C# Numerical Library

Sfun.Sign Method 

Returns the value of x with the sign of y.

public static double Sign(
   double x,
   double y
);

Parameters

x
A double value.
y
A double value.

Return Value

A double value specifying the absolute value of x and the sign of y.

See Also

Sfun Class | Imsl.Math Namespace