diff options
author | Teddy <[email protected]> | 2013-08-09 23:50:42 +0800 |
---|---|---|
committer | Teddy <[email protected]> | 2013-08-09 23:50:42 +0800 |
commit | 80e885a9847c9bce1be8cccafc85ea39cbc120e2 (patch) | |
tree | 5976ed008996012f23d1eeb8765a8a859e62f64c /eval.cpp | |
parent | 1985734990b5c5ab3fd50277bff854ea3cd92b2c (diff) |
numerical overflow detection
Diffstat (limited to 'eval.cpp')
-rw-r--r-- | eval.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -35,6 +35,10 @@ void Evaluator::add_builtin_routines() { ADD_BUILTIN_PROC("exact?", num_is_exact); ADD_BUILTIN_PROC("inexact?", num_is_inexact); ADD_BUILTIN_PROC("number?", is_number); + ADD_BUILTIN_PROC("complex?", is_complex); + ADD_BUILTIN_PROC("real?", is_real); + ADD_BUILTIN_PROC("rational?", is_rational); + ADD_BUILTIN_PROC("integer?", is_integer); ADD_BUILTIN_PROC("not", bool_not); ADD_BUILTIN_PROC("boolean?", is_boolean); |