diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2014-03-19 00:07:48 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2014-03-19 00:07:48 -0700 |
commit | bb30e8bc09ffaf5b7bf0ce7ecca17c55c8bf428d (patch) | |
tree | 8400d4ff248929e63f0cfd28b9880b7d01a87dad /arith.h | |
parent | ee3464c68375f00a6cf44b4bfad8bdbda4e17d32 (diff) | |
download | txr-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.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |