y

Applies to C Applies to C++

Purpose

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

Syntax


Syntax Diagram

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 References

Compiler Command Line Options IBM Copyright 2003