BasicFunctionssign Method |
Returns -1 if argument negative, 0 if argument zero, or 1 if argument is positive.
Namespace: Altaxo.CalcAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax 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 argument is positive.
See Also