string->number only radix 10 is supported

Bug #233898 reported by Derick Eddington
2
Affects Status Importance Assigned to Milestone
Ikarus Scheme
Fix Committed
Medium
Abdulaziz Ghuloum

Bug Description

I learned I can prefix the string with a radix, so I don't need this immediately, but thought I should report it because it seems like it's already ready to support the other radices.

Ikarus Scheme version 0.0.3+ (revision 1486, build 2008-05-21)
Copyright (c) 2006-2008 Abdulaziz Ghuloum

> (string->number "#xf")
15
> (string->number "#o77")
63
> (string->number "#b101")
5
> (string->number "f" 16)
Unhandled exception
 Condition components:
   1. &assertion
   2. &who: string->number
   3. &message: "BUG: only radix 10 is supported"
   4. &irritants: ("f" 16)
>

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

I'm in the process of rewriting this procedure to support complex numbers. This was going to be done in the process.

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

Fixed in 1495.

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

Remote bug watches

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