Click or drag to resize

BasicFunctionssign Method

Returns -1 if the argument is negative, 0 if the argument is zero, or 1 if the argument is positive.

Namespace: Altaxo.Calc
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3448.0 (4.8.3448.0)
Syntax
C#
public static int sign(
	double x
)

Parameters

x  Double
The number whose sign is returned.

Return Value

Int32
-1 if the argument is negative, 0 if the argument is zero, or 1 if the argument is positive.
See Also