[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: big number printout

From: Ludovic Courtès
Subject: Re: big number printout
Date: Wed, 02 Jul 2008 09:30:06 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux)


"Bill Schottstaedt" <address@hidden> 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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]