summaryrefslogtreecommitdiffstats
path: root/arith.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2016-09-24 06:57:29 -0700
committerKaz Kylheku <kaz@kylheku.com>2016-09-24 06:57:29 -0700
commit856c7188075a3e74ac4d9ef4dd665774f193d8d1 (patch)
treef981d3b4a23a763108d1590444fb56c8c4fae24f /arith.h
parentd510a260dd1755961fe85b6653e9832f49b34201 (diff)
downloadtxr-856c7188075a3e74ac4d9ef4dd665774f193d8d1.tar.gz
txr-856c7188075a3e74ac4d9ef4dd665774f193d8d1.tar.bz2
txr-856c7188075a3e74ac4d9ef4dd665774f193d8d1.zip
New functions: tofloatz and tointz.
* arith.c (tofloatz, tointz): New functions. * arith.h (tofloatz, tointz): Declared. * eval.c (eval_init): Register tofloatz and tointz intrinsics. * txr.1: Documented new functions.
Diffstat (limited to 'arith.h')
-rw-r--r--arith.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arith.h b/arith.h
index 4e1bf5d2..532fb5ee 100644
--- a/arith.h
+++ b/arith.h
@@ -39,6 +39,8 @@ val n_choose_k(val n, val k);
val n_perm_k(val n, val k);
val tofloat(val obj);
val toint(val obj, val base);
+val tofloatz(val obj);
+val tointz(val obj, val base);
val width(val num);
void arith_init(void);
void arith_free_all(void);