summaryrefslogtreecommitdiffstats
path: root/txr.1
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2016-09-24 07:13:05 -0700
committerKaz Kylheku <kaz@kylheku.com>2016-09-24 07:13:05 -0700
commit657217908b4a9e41de931b433b7b0a494abacb96 (patch)
treed73870a3e31a0d31423449e5ef9c60b011c1c987 /txr.1
parent856c7188075a3e74ac4d9ef4dd665774f193d8d1 (diff)
downloadtxr-657217908b4a9e41de931b433b7b0a494abacb96.tar.gz
txr-657217908b4a9e41de931b433b7b0a494abacb96.tar.bz2
txr-657217908b4a9e41de931b433b7b0a494abacb96.zip
awk macro: fconv conversions iz, xz, oz, bz and rz.
* share/txr/stdlib/conv.tl (sys:conv-let): New flets iz, oz, xz, bz and rz. * txr.1: Documented under fconv.
Diffstat (limited to 'txr.1')
-rw-r--r--txr.116
1 files changed, 16 insertions, 0 deletions
diff --git a/txr.1 b/txr.1
index 71e3493a..0d380f1d 100644
--- a/txr.1
+++ b/txr.1
@@ -39104,6 +39104,22 @@ the floating-point value which it denotes. The expression
.code "(r str)"
is equivalent to
.codn "(tofloat str)" .
+.ccIP @, iz @, oz @, xz @ bz and @ rz
+Conversion similar to
+.codn i ,
+.codn o ,
+.codn x ,
+.code b
+and
+.codn r ,
+but using
+.code tointz
+and
+.codn tofloatz .
+Thus fields which are non-numeric strings or the object
+.code nil
+get converted to 0, or 0.0 in the case of
+.codn rz .
.RE
.SS* Environment Variables and Command Line