Reround
Complete rounding of a partially rounded value, avoiding double rounding which causes errors.
_Decimal64 __d64_reround (_Decimal64, unsigned long number_of_digits, unsigned long rounding_mode);
_Decimal128 __d128_reround (_Decimal128, unsigned long number_of_digits, unsigned long rounding_mode);
These functions temporarily override the rounding mode in effect for the current operation. The value to be rerounded should have been previously rounded using mode DFP_ROUND_TO_PREPARE_FOR_SHORTER_PRECISION or 7 to ensure correct rounding.