Sun Studio 12: C++ User's Guide

A.2.26.1 Values

r must be one of the following values.

Table A–12 The -fround Values

Value 

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.