Summary

numbers egg comparison of a bignum & a flonum can be incorrect

Metadata

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.