Summary
numbers egg comparison of a bignum & a flonum can be incorrect
Metadata
- Id: 5c2c4352d4d7b3ca2906bbc10ccaed119605a12c
- Trac id: 76
- Type: defect
- Reporter: kon
- Owner:
- Cc:
- Status: closed
- Component: extensions
- Estimated difficulty:
- Resolution: fixed
- Priority: major
- Milestone:
- Version: 4.2.x
- Changetime: 2010-03-22 12:10:30 UTC
- Created: 2009-09-23 21:15:48 UTC
- Keywords:
Description
(< 1237940039285380274899124223 1237940039285380274899124224.0) ;=> #t
but
(< 1237940039285380274899124224.0 1237940039285380274899124225) ;=> #f
This is caused by using the flonum domain for all comparisons involving bignums.
(exact->inexact 1237940039285380274899124225) ;=> 1237940039285380274899124224.0
Changes and comments
[2010-03-22 12:10:30 UTC] sjamaan changed status from new to closed
[2010-03-22 12:10:30 UTC] sjamaan set resolution to fixed
[2010-03-22 12:10:30 UTC] sjamaan wrote:
Please try out the latest release (2.0). This bug is fixed there.