chicken-janitors
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-janitors] #76: numbers egg comparison of a bignum & a flonum ca


From: Chicken Trac
Subject: [Chicken-janitors] #76: numbers egg comparison of a bignum & a flonum can be incorrect
Date: Wed, 23 Sep 2009 19:15:49 -0000

#76: numbers egg comparison of a bignum & a flonum can be incorrect
------------------------+---------------------------------------------------
 Reporter:  kon         |       Owner:       
     Type:  defect      |      Status:  new  
 Priority:  major       |   Milestone:       
Component:  extensions  |     Version:  4.2.x
 Keywords:              |  
------------------------+---------------------------------------------------
 (< 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

-- 
Ticket URL: <http://www.irp.oist.jp/trac/chicken/ticket/76>
Chicken Scheme <http://www.call-with-current-continuation.org/>
Chicken Scheme is a compiler for the Scheme programming language.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]