Same as the overload taking Decimal64.

Synopsis

Declared in <bdldfp_decimalutil.h>

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

Return Value

x truncated to the specified number of decimal places

Parameters

Name

Description

x

value to truncate

precision

number of decimal places to retain

Created with MrDocs