 | MathUtilsSign Method |
Determines the sign of the passed value. Returns -1 if value is negative, 1 if value is positive, 0 if value is zero.
Namespace: Slash.Math.UtilsAssembly: Slash.Math (in Slash.Math.dll) Version: 1.0.6018.40177
Syntaxpublic static int Sign(
float value
)
Public Shared Function Sign (
value As Single
) As Integer
public:
static int Sign(
float value
)
static member Sign :
value : float32 -> int
Parameters
- value
- Type: SystemSingle
Value to check.
Return Value
Type:
Int32 -1 if value is negative, 1 if value is positive, 0 if value is zero.
See Also