fabs

fnfloat fabs(float x)

Compute the absolute value.

x fabs(x)
±0.0 +0.0
±∞ +∞

It is implemented as a compiler intrinsic.

Parameters

xfloating point value

Returns

|x|

References: equivalent to std.math.fabs

fndouble fabs(double x)
No documentation available for this declaration.
fnreal fabs(real x)
No documentation available for this declaration.