diff options
author | Andrew J. Schorr <aschorr@telemetry-investments.com> | 2021-06-24 11:14:13 -0400 |
---|---|---|
committer | Andrew J. Schorr <aschorr@telemetry-investments.com> | 2021-06-24 11:14:13 -0400 |
commit | 471bd0da9589824f87a3f4e60c2e3951255a8462 (patch) | |
tree | dfd4c32c0c1b4c145fa0fcdaca136d5505c07aa4 /doc/gawktexi.in | |
parent | 98ef29fdcadffc0a05c91883c4ab8809a8b0d441 (diff) | |
download | egawk-471bd0da9589824f87a3f4e60c2e3951255a8462.tar.gz egawk-471bd0da9589824f87a3f4e60c2e3951255a8462.tar.bz2 egawk-471bd0da9589824f87a3f4e60c2e3951255a8462.zip |
Enhance isnumeric documentation.
Diffstat (limited to 'doc/gawktexi.in')
-rw-r--r-- | doc/gawktexi.in | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/doc/gawktexi.in b/doc/gawktexi.in index 236ef638..d5373d7f 100644 --- a/doc/gawktexi.in +++ b/doc/gawktexi.in @@ -22193,13 +22193,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 |