Quotient, remainder and modulo accept inexact integers
authorMark H Weaver <mhw@netris.org>
Mon, 7 Mar 2011 01:27:40 +0000 (20:27 -0500)
committerMark H Weaver <mhw@netris.org>
Tue, 8 Mar 2011 23:18:31 +0000 (18:18 -0500)
commit495a39c40f8c31479272495c3a550695077ac335
tree8dce7e1c0115e27d10e14a577e8e162fb1a5b5e9
parente3c15cf7a61ca79b67f510624cdc1631e3662b20
Quotient, remainder and modulo accept inexact integers

* libguile/numbers.c (scm_quotient, scm_remainder, scm_modulo): Accept
  inexact integers as well as exact ones, as required by the R5RS.

* test-suite/tests/numbers.test (quotient, remainder, modulo): Add tests.
libguile/numbers.c
test-suite/tests/numbers.test