__dfp_set_rounding_mode

Purpose

Set Rounding Mode

Sets the current decimal rounding mode.

Prototype

void __dfp_set_rounding_mode (unsigned long rounding_mode);

Parameters

rounding_mode
One of the compile-time constant values (0 to 7) or macros listed in Table 1.

Usage

If you change the rounding mode within a function, you must restore the rounding mode before the function returns.