Returns the absolute value of a single-precision floating-point number.
Namespace: SystemAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public static float Abs(
float value
)
Parameters
- value
- Type: SystemSingle
A number that is greater than or equal to MinValue, but less than or equal to MaxValue.
Return Value
Type:
SingleA single-precision floating-point number, x, such that 0 ≤ x ≤
MaxValue.
See Also