Option Type | Default Value | #pragma options | C | C++ |
-flag | - | Yrounding_mode | x | x |
Syntax
-yrounding_mode Yrounding_mode
Purpose
Specifies the compile-time rounding mode of constant
floating-point expressions.
Notes
rounding_mode must be one of the following:
nRound to the nearest representable number. This is the default. mRound toward minus infinity. pRound toward plus infinity. zRound toward zero.
Example
To compile myprogram.c so that constant floating-point
expressions are rounded toward zero at compile time, enter:
xlC myprogram.c -yz
List of Compiler Options and Their
Defaults
Options that Define the Compiler Object
Code Produced