BloombergLP::bdldfp::DecimalUtil::fabs

Return the absolute value of the specified x.

Synopsis

Declared in <bdldfp_decimalutil.h>

static
Decimal32
fabs(Decimal32 value);

Description

Special value handling: * if x is NaN (either signaling or quiet), quiet NaN is returned. * if x is +/-infinity or +/-0, it is returned unmodified.