unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* re: big number printout
@ 2008-07-02 22:36 Bill Schottstaedt
  2008-07-03 21:58 ` Neil Jerram
  0 siblings, 1 reply; 9+ messages in thread
From: Bill Schottstaedt @ 2008-07-02 22:36 UTC (permalink / raw)
  To: bug-guile

just to follow up -- not as an argument, but to add data --
this inaccurate printout happens with smaller numbers
(in the 2^50 range), and as noted by others, the internal
representation seems ok. Here's another example:

guile> 1000000000000007.0
1000000000000010.0
guile> (odd? 1000000000000007.0)
#t
guile> (even? 1000000000000007.0)
#f

("It's an *inexact* integer, ferchrissake")






^ permalink raw reply	[flat|nested] 9+ messages in thread
* big number printout
@ 2008-07-01 14:03 Bill Schottstaedt
  2008-07-02  7:30 ` Ludovic Courtès
  0 siblings, 1 reply; 9+ messages in thread
From: Bill Schottstaedt @ 2008-07-01 14:03 UTC (permalink / raw)
  To: bug-guile

Not sure this is a bug, but it is confusing:

guile> (version)
"1.8.5"
guile> (+ 40816513889983671.0 3.0)
40816513889983700.0
guile> (= (+ 40816513889983671.0 3.0) 40816513889983700.0)
#f
guile> (= (+ 40816513889983671.0 3.0) 40816513889983674.0)
#t







^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2008-07-04  9:18 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-02 22:36 big number printout Bill Schottstaedt
2008-07-03 21:58 ` Neil Jerram
2008-07-04  0:53   ` Bill Schottstaedt
2008-07-04  8:31     ` Neil Jerram
2008-07-04  9:18       ` Marijn Schouten (hkBst)
  -- strict thread matches above, loose matches on Subject: below --
2008-07-01 14:03 Bill Schottstaedt
2008-07-02  7:30 ` Ludovic Courtès
2008-07-02 21:22   ` Marijn Schouten (hkBst)
2008-07-03  7:17     ` Ludovic Courtès

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).