Opened 14 years ago

Closed 14 years ago

Last modified 12 years ago

#565 closed defect (wontfix)

EQV? doesn't distinguish between 0.0 and -0.0

Reported by: johnwcowan Owned by: felix winkelmann
Priority: not urgent at all Milestone: 4.9.0
Component: unknown Version: 4.6.x
Keywords: Cc:
Estimated difficulty:

Description

CHICKEN
(c)2008-2011 The Chicken Team
(c)2000-2007 Felix L. Winkelmann
Version 4.6.7
linux-unix-gnu-x86 [ manyargs dload ptables ]
compiled 2011-04-15 on pubuntu (Linux)

#;1> (define pz (* 1.0 0.0))
#;2> pz
0.0
#;3> (define nz (* -1.0 0.0))
#;4> nz
-0.0
#;5> (eqv? pz nz)
#t

That shouldn't happen. When this is fixed, make sure that (= nz pz) still returns #t.

Change History (4)

comment:1 Changed 14 years ago by felix winkelmann

Milestone: 4.7.04.8.0
Owner: set to felix winkelmann
Status: newassigned

Why must eqv? return something different than = in this case?

comment:2 Changed 14 years ago by felix winkelmann

Priority: majornot urgent at all

comment:3 Changed 14 years ago by felix winkelmann

Resolution: wontfix
Status: assignedclosed

comment:4 Changed 12 years ago by felix winkelmann

Milestone: 4.8.04.9.0

Milestone 4.8.0 deleted

Note: See TracTickets for help on using tickets.