Returns the value of x with the sign of y.

Namespace: Imsl.Math
Assembly: ImslCS (in ImslCS.dll) Version: 6.5.0.0

Syntax

C#
public static double Sign(
	double x,
	double y
)
Visual Basic (Declaration)
Public Shared Function Sign ( _
	x As Double, _
	y As Double _
) As Double
Visual C++
public:
static double Sign(
	double x, 
	double y
)

Parameters

x
Type: System..::.Double
A double value.
y
Type: System..::.Double
A double value.

Return Value

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

See Also