Click or drag to resize
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.Utils
Assembly: Slash.Math (in Slash.Math.dll) Version: 1.0.6018.40177
Syntax
public static int Sign(
	float value
)

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