-Xround


This option specifies the mode for rounding floating-point constants.

[Specification format]

-Xround=mode

 

-

Interpretation when omitted

Floating-point constants are rounded to the nearest representable values (this is the same result as when -Xround=nearest is specified).

[Detailed description]

-

This option specifies the mode for rounding floating-point constants.

-

One of the following can be specified as mode. An error will occur if any other item is specified.

-

nearest
Floating-point constants are rounded to the nearest representable values.

-

zero
Floating-point constants are rounded toward zero.

-

If this option is specified together with the -Xfloat=soft option, this option will be invalid and floating-point constants will always be rounded to the nearest representable values.