asp.net.ph

Math.Abs Method ( Single )

System Namespace   Math Class


Returns the absolute value of a single-precision floating-point number.

[ VB ]
Overloads Public Shared Function Abs ( _
   ByVal value As Single _
) As Single

[ C# ]
public static float Abs (
   float value
);

[ C++ ]
public: static float Abs (
   float value
);

[ JScript ]
public static function Abs (
   value : float
) : float;

Parameters

value
A number in the range MinValue < valueMaxValue.

Return Value

A single-precision floating-point number, x, such that 0 ≤ x ≤ MaxValue.

Remarks

If value is equal to NegativeInfinity or PositiveInfinity, the return value is PositiveInfinity. If value is equal to NaN, the return value is NaN.

See Also

Math Members   Math.Abs Overload List Skip Navigation Links


Previous page Back to top Next page

Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note