BloombergLP::bdldfp::DecimalUtil::trunc

Same as the related overload above for trunc.

Synopsis

Declared in <bdldfp_decimalutil.h>

static
Decimal64
trunc(
    Decimal64 x,
    unsigned int precision);

Return Value

x truncated to the specified number of decimal places

Parameters

NameDescription
xvalue to truncate
precisionnumber of decimal places to retain