diff options
author | Mike Gran <spk121@yahoo.com> | 2011-10-09 20:54:37 -0700 |
---|---|---|
committer | Mike Gran <spk121@yahoo.com> | 2011-10-09 20:54:37 -0700 |
commit | 022dda690126d993d82644efeffada1a1ef41123 (patch) | |
tree | 5e81d7fddecf9d45c3781a356167b8227b115c25 /libguile/numbers.h | |
parent | b2c4c3e5e315c64a5978d1c5918e9063cd92ada8 (diff) | |
download | guile-022dda690126d993d82644efeffada1a1ef41123.tar.gz |
New functions scm_is_exact and scm_is_inexact
* doc/ref/api-data.texi (Exact and Inexact Numbers): doc for scm_is_exact
and scm_is_inexact
* libguile/numbers.c (scm_is_exact, scm_is_inexact): new functions
* libguile/numbers.h: declarations for scm_is_exact and scm_is_inexact
* test/suite/standalone/test-conversion.c (test_is_exact, test_is_inexact):
new tests
Diffstat (limited to 'libguile/numbers.h')
-rw-r--r-- | libguile/numbers.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libguile/numbers.h b/libguile/numbers.h index d98583039..d3a344443 100644 --- a/libguile/numbers.h +++ b/libguile/numbers.h @@ -165,6 +165,7 @@ typedef struct scm_t_complex SCM_API SCM scm_exact_p (SCM x); +SCM_API int scm_is_exact (SCM x); SCM_API SCM scm_odd_p (SCM n); SCM_API SCM scm_even_p (SCM n); SCM_API SCM scm_finite_p (SCM x); @@ -241,6 +242,7 @@ SCM_API SCM scm_real_p (SCM x); SCM_API SCM scm_rational_p (SCM z); SCM_API SCM scm_integer_p (SCM x); SCM_API SCM scm_inexact_p (SCM x); +SCM_API int scm_is_inexact (SCM x); SCM_API SCM scm_num_eq_p (SCM x, SCM y); SCM_API SCM scm_less_p (SCM x, SCM y); SCM_API SCM scm_gr_p (SCM x, SCM y); |