BloombergLP::bdldfp::DecimalUtil::fabs

Return the absolute value of the specified value.

Synopsis

Declared in <bdldfp_decimalutil.h>

static
Decimal32
fabs(Decimal32 value);

Description

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

Return Value

absolute value of value

Parameters

NameDescription
valuedecimal value