diff options
Diffstat (limited to 'doc/gawktexi.in')
-rw-r--r-- | doc/gawktexi.in | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/doc/gawktexi.in b/doc/gawktexi.in index 0ac35f7a..b64c192a 100644 --- a/doc/gawktexi.in +++ b/doc/gawktexi.in @@ -22224,13 +22224,19 @@ 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 @samp{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. +On the other hand, it uses the @code{typeof()} function +(@pxref{Type Functions}), which is specific to @command{gawk}. @node Data File Management @section @value{DDF} Management |