Hi,

"Bill Schottstaedt" <[EMAIL PROTECTED]> writes:

> Not sure this is a bug, but it is confusing:
>
> guile> (version)
> "1.8.5"
> guile> (+ 40816513889983671.0 3.0)
> 40816513889983700.0

You're exceeding the precision of a float or double (whichever is used
for reals):

  guile> 40816513889983671.0
  40816513889983700.0  <--- rounded up
  guile> 40816513889983671
  40816513889983671    <--- integers are not rounded

FWIW, Bigloo and Ikarus behave similarly, and I don't think there's much
that can be done.

Thanks,
Ludovic.



Reply via email to