summaryrefslogtreecommitdiffstats
path: root/arith.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2014-03-19 00:07:48 -0700
committerKaz Kylheku <kaz@kylheku.com>2014-03-19 00:07:48 -0700
commitbb30e8bc09ffaf5b7bf0ce7ecca17c55c8bf428d (patch)
tree8400d4ff248929e63f0cfd28b9880b7d01a87dad /arith.h
parentee3464c68375f00a6cf44b4bfad8bdbda4e17d32 (diff)
downloadtxr-bb30e8bc09ffaf5b7bf0ce7ecca17c55c8bf428d.tar.gz
txr-bb30e8bc09ffaf5b7bf0ce7ecca17c55c8bf428d.tar.bz2
txr-bb30e8bc09ffaf5b7bf0ce7ecca17c55c8bf428d.zip
* arith.c (tofloat, toint): New functions.
* arith.h (tofloat, toint): Declared. * eval.c (eval_init): tofloat and toint registered as intrinsics. * txr.1: Documented.
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 a73bdde8..1479564c 100644
--- a/arith.h
+++ b/arith.h
@@ -33,4 +33,6 @@ val in_int_ptr_range(val bignum);
val cum_norm_dist(val x);
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);
void arith_init(void);