-y

Description

Specifies the compile-time rounding mode of constant floating-point expressions.

Syntax

Read syntax diagramSkip visual syntax diagram        .-n-.
>>- -y--+-m-+--------------------------------------------------><
        +-p-+
        '-z-'

where suboptions are:

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

Related information