BloombergLP::bdldfp::DecimalImpUtil::trunc

Return x rounded toward zero to an integral value.

Synopses

Declared in <bdldfp_decimalimputil.h>

Return x rounded toward zero to an integral value.

static
DecimalImpUtil::ValueType128
trunc(ValueType128 x);
» more...

Return x rounded toward zero to an integral value.

static
DecimalImpUtil::ValueType32
trunc(ValueType32 x);
» more...

Return x rounded toward zero to an integral value.

static
DecimalImpUtil::ValueType64
trunc(ValueType64 x);
» more...

Return Value

x rounded toward zero to an integral value

Parameters

NameDescription
xvalue to truncate