Summary
EQV? doesn't distinguish between 0.0 and -0.0
Metadata
- Id: 3a6c68f056240dfb3bd8b1784a20059cee07605e
- Trac id: 565
- Type: defect
- Reporter: johnwcowan
- Owner: felix
- Cc:
- Status: closed
- Component: unknown
- Estimated difficulty:
- Resolution: wontfix
- Priority: not urgent at all
- Milestone: 4.9.0
- Version: 4.6.x
- Changetime: 2012-09-24 21:47:48 UTC
- Created: 2011-04-15 21:21:53 UTC
- Keywords:
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.
Changes and comments
[2011-04-27 12:12:14 UTC] felix changed status from new to assigned
[2011-04-27 12:12:14 UTC] felix set owner to felix
[2011-04-27 12:12:14 UTC] felix changed milestone from 4.7.0 to 4.8.0
[2011-04-27 12:12:14 UTC] felix wrote:
Why must `eqv?` return something different than `=` in this case?
[2011-05-02 12:49:33 UTC] felix changed priority from major to not urgent at all
[2011-05-02 14:11:41 UTC] felix changed status from assigned to closed
[2011-05-02 14:11:41 UTC] felix set resolution to wontfix
[2012-09-24 21:47:48 UTC] felix wrote:
Milestone 4.8.0 deleted