Discussion:
[Larceny-users] in R6RS mode, magnitude applied to an exact integer returns a flonum
Marco Maggi
2010-04-03 19:20:17 UTC
Permalink
(magnitude 1) => 1.0
--
Marco Maggi
William D Clinger
2010-04-05 11:27:19 UTC
Permalink
(magnitude 1) => 1.0

This is not a bug; R6RS 11.7.1 explicitly permits (but does
not require) magnitude to return an inexact result for exact
arguments. Programs that expect magnitude to return an exact
result on exact arguments are not portable.

I have logged this as a requested enhancement. See
https://trac.ccs.neu.edu/trac/larceny/ticket/663

Will

Loading...