Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the absolute value of a single-precision floating-point number.
public: static float Abs(float x);
public static float Abs (float x);
static member Abs : single -> single
Public Shared Function Abs (x As Single) As Single
A single-precision floating-point number, x, such that 0 ≤ x ≤ Single.MaxValue.
The absolute value of a Single is its numeric value without its sign. For example, the absolute value of both 1.2e-03 and -1.2e03 is 1.2e03.