Click or drag to resize
MathAbs Method (Single)
Returns the absolute value of a single-precision floating-point number.

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
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: Single
A single-precision floating-point number, x, such that 0 ≤ x ≤MaxValue.
See Also