HP-UX 11i June 2003 Release Notes

Programming
Libraries
Chapter 15
295
Changes to libm
The fesetround() and fehold() functions in fenv.h have been upgraded to the latest
ISO C9x specification. Previously the functions returned nonzero to indicate success and
zero to indicate failure; now they return zero to indicate success and nonzero to indicate
failure.
Any code that depended on the return value will need to change. For example:
if (!fesetround(FE_UPWARD))
{/* deal with failure to set rounding direction */}
could be changed to:
if(fesetrod(FE_UPWARD))
{/* deal with failure to set rounding direction */}
Previous code that depended on the return value is not compatible beginning with the
11.0 May 1999 Extension Pack.