]> git.ipfire.org Git - thirdparty/man-pages.git/blobdiff - man3/isgreater.3
isgreater.3: Clarify that the arguments to these macros must be real-floating
[thirdparty/man-pages.git] / man3 / isgreater.3
index 022f83e41b8da17edc8feea3135fa5f97d946bff..d99d193572cf2befc9d7d0ce40ef052e8af396f2 100644 (file)
@@ -3,7 +3,7 @@
 .\" 2002-07-27 Walter Harms
 .\" this was done with the help of the glibc manual
 .\"
-.TH ISGREATER 3  2010-09-20 "" "Linux Programmer's Manual"
+.TH ISGREATER 3  2012-05-06 "" "Linux Programmer's Manual"
 .SH NAME
 isgreater, isgreaterequal, isless, islessequal, islessgreater,
 isunordered \- floating-point relational tests without exception for NaN
@@ -45,9 +45,13 @@ or
 The normal relation operations (like \fB<\fP, "less than")
 will fail if one of the operands is NaN.
 This will cause an exception.
-To avoid this, C99 defines these macros.
-The macros are guaranteed to evaluate their operands only once.
-The operands can be of any real floating-point type.
+To avoid this, C99 defines the macros listed below.
+
+These macros are guaranteed to evaluate their arguments only once.
+The arguments must be of real floating-point type (note: do not pass
+integer values as arguments to these macros, since the arguments will
+.I not
+be promoted to real-floating types).
 .TP
 .BR isgreater ()
 determines \fI(x)\ >\ (y)\fP without an exception