y

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:

n 
Round to the nearest representable number. This is the default.
m 
Round toward minus infinity.
p 
Round toward plus infinity.
z 
Round 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 Batch Compiler Options and Their Defaults
Options that Define the Compiler Object Code Produced Equivalent Batch Compile-Link and Incremental Build Options