| http://people.csail.mit.edu/jaffer/SCM_CONFORMANCE | |
* SCM Standards Conformance |
When compiled with floating-point number support, SCM's numerics are instead described mostly by:
http://srfi.schemers.org/srfi-70/
gcd, lcm,
modulo, remainder,
quotient, even?, and odd?
accept only exact integer arguments.
(/ 0 0) returns a NaN instead of erring.
(log 0) returns an infinity instead of erring.
(expt 0 -1) returns an infinity instead of erring.
(* 0 (expt 0 -1)) returns a NaN instead of erring.
number->string and
string->number do not always meet the inversion
constraint "using the minimum number of digits". I hope to see
this get corrected.
When SCM is compiled by an optimizer
(like gcc -O2) which generates code which
uses 80.bit intermediate floating-point values, violations of the
inversion constraint are rare in practice.
Copyright © 2007 Aubrey Jaffer
|
I am a guest and not a member of the MIT Computer Science and Artificial Intelligence Laboratory.
My actions and comments do not reflect in any way on MIT. | ||
| agj @ alum.mit.edu | Go Figure! | |