unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* bug in eqv?
@ 2006-03-18  3:42 Aubrey Jaffer
  2006-03-21  0:58 ` Kevin Ryde
  0 siblings, 1 reply; 5+ messages in thread
From: Aubrey Jaffer @ 2006-03-18  3:42 UTC (permalink / raw)


bash-2.05b$ guile --version
Guile 1.8.0 ...
bash-2.05b$ guile
guile> (= 0.0 -0.0)
#t
guile> (eqv? 0.0 -0.0)
#f

According to R5RS section "6.1 Equivalence predicates":

     The `eqv?' procedure returns #t if:

        * OBJ1 and OBJ2 are both numbers, are numerically equal (see
          `=', section *note Numbers::), and are either both exact or
          both inexact.

Because (= 0.0 -0.0) is #t, (eqv? 0.0 -0.0) must be #t.


_______________________________________________
Bug-guile mailing list
Bug-guile@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-guile


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

end of thread, other threads:[~2006-03-24 21:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-18  3:42 bug in eqv? Aubrey Jaffer
2006-03-21  0:58 ` Kevin Ryde
2006-03-21 23:52   ` Marius Vollmer
2006-03-24  0:17     ` Aubrey Jaffer
2006-03-24 21:56       ` Kevin Ryde

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).