rationalize broken

Bug #191116 reported by Ken Dickey
2
Affects Status Importance Assigned to Milestone
Ikarus Scheme
Fix Committed
Medium
Abdulaziz Ghuloum

Bug Description

>> larceny
Larceny v0.961 "Fluoridation" (Jan 2 2008 08:01:50, precise:Linux:unified)
larceny.heap, built on Wed Jan 2 08:11:02 EST 2008

> (rationalize 1.2345678 0.001)
1.2352941176470589
> (exit)

>> gsi
Gambit v4.1.2

> (rationalize 1.2345678 0.001)
1.2352941176470589
> (exit)

>> ikarus
Ikarus Scheme version 0.0.3+ (revision 1378, build 2008-02-11)
Copyright (c) 2006-2008 Abdulaziz Ghuloum

> (rationalize 1.2345678 0.001)
Unhandled exception
 Condition components:
   1. &assertion
   2. &who: quotient+remainder
   3. &message: "not a number"
   4. &irritants: (1/8)
> (exit)

Revision history for this message
Ken Dickey (ken-dickey) wrote :

Note that Alan Bawden's rationalize code in SLIB works in Ikarus (as does the version of Alan's code from the Larceny runtime).

Revision history for this message
Abdulaziz Ghuloum (aghuloum) wrote :

Will fix. Though I don't know what "the simplest" means when it comes to inexact numbers.

Changed in ikarus:
assignee: nobody → aghuloum
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Abdulaziz Ghuloum (aghuloum) wrote :

Fixed in 1408. Thanks and sorry for the delay

Changed in ikarus:
status: Confirmed → Fix Committed
Changed in ikarus:
milestone: none → 0.0.4
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.