The floating-point rounding mode can only be changed at the beginning and end of a function. It cannot be changed across a function call, and if it is changed within a function, it must be restored before returning to the calling routine.
Floating-Point Compiler Options
Compile-Time Floating-Point Arithmetic