NAME
iissggrreeaatteerr, iissggrreeaatteerreeqquuaall, iisslleessss, iisslleesssseeqquuaall, iisslleessssggrreeaatteerr,iissuunnoorrddeerreedd - compare two floating-point numbers
LLIIBBRRAARRYYStandard C Library (libc, -lc)
SYNOPSIS
##iinncclluuddee <
int> iissggrreeaatteerr(real-floating x, real-floating y);
intiissggrreeaatteerreeqquuaall(real-floating x, real-floating y);
intiisslleessss(real-floating x, real-floating y);
intiisslleesssseeqquuaall(real-floating x, real-floating y);
intiisslleessssggrreeaatteerr(real-floating x, real-floating y);
intiissuunnoorrddeerreedd(real-floating x, real-floating y);
DESCRIPTION
Each of the macros iissggrreeaatteerr(), iissggrreeaatteerreeqquuaall(), iisslleessss(), iisslleesssseeqquuaall(), and iisslleessssggrreeaatteerr() take arguments x and y and return anon-zero value if and only if its nominal relation on x and y is true.
These macros always return zero if either argument is not a number (NaN), but unlike the corresponding C operators, they never raise a floating point exception.The iissuunnoorrddeerreedd() macro takes arguments x and y and returns non-zero if
and only if neither x nor y are NaNs. For any pair of floating-point
values, one of the relationships (less, greater, equal, unordered) holds.SEE ALSO
fpclassify(3), math(3), signbit(3) STANDARDS The iissggrreeaatteerr(), iissggrreeaatteerreeqquuaall(), iisslleessss(), iisslleesssseeqquuaall(), iisslleessssggrreeaatteerr(), and iissuunnoorrddeerreedd() macros conform to ISO/IEC 9899:1999 (``ISO C99''). BSD February 12, 2003 BSD