BloombergLP::bdldfp::DecimalImpUtil::trunc

Return x rounded toward zero to an integral value.

Synopsis

Declared in <bdldfp_decimalimputil.h>

static
DecimalImpUtil::ValueType64
trunc(ValueType64 x);

Return Value

x rounded toward zero to an integral value

Parameters

NameDescription
xvalue to truncate