BloombergLP::bdldfp::DecimalImpUtil::fabs

Return the absolute value of the specified x.

Synopsis

Declared in <bdldfp_decimalimputil.h>

static
DecimalImpUtil::ValueType32
fabs(ValueType32 x);

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.