diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2021-06-25 12:12:42 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2021-06-25 12:12:42 +0300 |
commit | 79767ea99028031bc8397c0246552c55d79d6389 (patch) | |
tree | ad451bf867625f2cd7fb38b7c427eda478c4356b /doc/gawk.texi | |
parent | 494def1df53684a18640dce92eb7c0dda9742648 (diff) | |
parent | 1d2d8398f36f166517e482ad8ee836132a8fe056 (diff) | |
download | egawk-79767ea99028031bc8397c0246552c55d79d6389.tar.gz egawk-79767ea99028031bc8397c0246552c55d79d6389.tar.bz2 egawk-79767ea99028031bc8397c0246552c55d79d6389.zip |
Merge branch 'gawk-5.1-stable'
Diffstat (limited to 'doc/gawk.texi')
-rw-r--r-- | doc/gawk.texi | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/doc/gawk.texi b/doc/gawk.texi index b053b171..945e7670 100644 --- a/doc/gawk.texi +++ b/doc/gawk.texi @@ -23312,13 +23312,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 |