Important: The information in this document is obsolete and should not be used for new development.
Controlling the Rounding Direction
In MathLib, the following functions control the rounding direction:
fegetround Returns the current rounding direction. fesetround Sets the rounding direction. The four rounding direction modes are defined as the constants shown in Table 8-1.
Table 8-1 Rounding direction modes in MathLib Rounding direction Constant To nearest FE_TONEAREST Toward zero FE_TOWARDZERO Upward FE_UPWARD Downward FE_DOWNWARD