fabs

Compute the absolute value.

Special Values
xfabs(x)
±0.0+0.0
±∞+∞

It is implemented as a compiler intrinsic.

@nogc nothrow @safe pure @safe pure nothrow @nogc
float
fabs
(
float x
)

Parameters

x float

floating point value

Return Value

Type: float

|x| References: equivalent to std.math.fabs

Meta