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

Name

Description

x

value to truncate

precision

number of decimal places to retain

Created with MrDocs