fabs

Calculates |x|. This operation is silent, no error flags are set and no exceptions are thrown.

@IEEECompliant("abs", 23)
D
fabs
(
D
)
(
auto const ref D x
)

Examples

assert(fabs(-decimal32.max) == decimal32.max);
assert(fabs(decimal64.infinity) == decimal64.infinity);

Meta