C++ User's Guide

-fround=r

Sets the IEEE rounding mode in effect at start-up.

This option sets the IEEE 754 rounding mode that:

The meanings are the same as those for the ieee_flags subroutine, which can be used to change the mode at runtime.

Values

r must be one of the following:

Value of r

Meaning 

nearest

Rounds towards the nearest number and breaks ties to even numbers. 

tozero

Rounds to zero. 

negative

Rounds to negative infinity. 

positive

Rounds to positive infinity. 

Defaults

When the -fround option is not specified, the rounding mode defaults to -fround=nearest.

Warnings

If you compile one routine with -fround=r, compile all routines of the program with the same -fround=r option; otherwise, you might get unexpected results.

This option is effective only if used when compiling the main program.