References: equivalent to std.math.fabs
fabs
fn
float fabs(float x)Compute the absolute value.
| x | fabs(x) |
|---|---|
| ±0.0 | +0.0 |
| ±∞ | +∞ |
It is implemented as a compiler intrinsic.
Parameters
x | floating point value |
Returns
|x|
fn
double fabs(double x)No documentation available for this declaration.
fn
real fabs(real x)No documentation available for this declaration.