Summary
#e1.0000000000000001 evaluates to 1.0 with numbers on the REPL
Metadata
- Id: 3075fc637f0656a3e936edcc12bc0a8d290ee99c
- Trac id: 788
- Type: defect
- Reporter: ckeen
- Owner: sjamaan
- Cc:
- Status: closed
- Component: extensions
- Estimated difficulty:
- Resolution: worksforme
- Priority: major
- Milestone: 4.9.0
- Version: 4.7.x
- Changetime: 2012-09-24 21:47:48 UTC
- Created: 2012-02-14 21:45:40 UTC
- Keywords: numbers reader syntax
Description
CHICKEN (c)2008-2011 The Chicken Team (c)2000-2007 Felix L. Winkelmann Version 4.7.5 (rev 5518972) openbsd-unix-gnu-x86 [[|manyargs dload ptables ]] compiled 2012-02-04 on necronomicon.my.domain (OpenBSD)
#;1> #e1.0000000000000001 1 #;2> (use numbers)
- loading /home/ckeen/chickens/master/lib/chicken/6/numbers.import.so ...
- loading /home/ckeen/chickens/master/lib/chicken/6/chicken.import.so ...
- loading /home/ckeen/chickens/master/lib/chicken/6/foreign.import.so ...
- loading /home/ckeen/chickens/master/lib/chicken/6/numbers.so ...
#;3> #e1.0000000000000001 1.0
I was expecting a fraction and Peter too:
21:34 < sjamaan> #;1> (use numbers) 21:34 < sjamaan> #;2> #e1.0000000000000001 21:34 < sjamaan> 10000000000000001/10000000000000000
Changes and comments
[2012-02-15 22:23:46 UTC] sjamaan changed status from new to closed
[2012-02-15 22:23:46 UTC] sjamaan set resolution to worksforme
[2012-02-15 22:23:46 UTC] sjamaan wrote:
I forgot to add this to the changelog on the wiki, but the fix for exactness prefix handling is only available in trunk, not in numbers 2.7. It only works with the 4.7.4 dev snapshot anyway (or some master version between 4.7.3 and 4.7.4, of course). I will make a new numbers release ASAP (I need to get the numbers tests compiled first, or else maybe I could disable the types database I guess)
I've tested this on call-cc.org (which is also 32-bits, which we originally thought was the cause of this since it worked on 64-bits) and I've updated the changelog to reflect the fact that this only works in trunk.
[2012-09-24 21:47:48 UTC] felix changed milestone from 4.8.0 to 4.9.0
[2012-09-24 21:47:48 UTC] felix wrote:
Milestone 4.8.0 deleted