__d64_quantize, __d128_quantize

Purpose

Quantize

Returns the arithmetic value of the first parameter, with the exponent adjusted to match the second parameter, using a specified rounding mode.

Prototype

_Decimal64 __d64_quantize (_Decimal64, _Decimal64, long rounding_mode);

_Decimal128 __d128_quantize (_Decimal128, _Decimal128, long rounding_mode);

Parameters

rounding_mode
One of the compile-time constant values or macros defined in Table 1.

Usage

These functions temporarily override the rounding mode in effect for the current operation.