aboutsummaryrefslogtreecommitdiffstats
path: root/doc/gawk.texi
diff options
context:
space:
mode:
Diffstat (limited to 'doc/gawk.texi')
-rw-r--r--doc/gawk.texi8
1 files changed, 6 insertions, 2 deletions
diff --git a/doc/gawk.texi b/doc/gawk.texi
index 0372897f..bdce4be8 100644
--- a/doc/gawk.texi
+++ b/doc/gawk.texi
@@ -23281,13 +23281,17 @@ function isnumeric(x, f)
return 0
@}
@}
+@c endfile
+@end example
Please note that leading or trailing white space is disregarded in deciding
whether a value is numeric or not, so if it matters to you, you may want
to add an additional check for that.
-@c endfile
-@end example
+Traditionally, it has been recommended to check for numeric values using the
+test @code{x+0 == x}. This function is superior in two ways: it will not
+report that unassigned variables contain numeric values; and it recognizes
+string values with numeric contents.
@node Data File Management
@section @value{DDF} Management