[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bugs #11197] Error in string->number
From: |
Kevin Ryde |
Subject: |
[bugs #11197] Error in string->number |
Date: |
Sat, 04 Dec 2004 17:08:54 -0500 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.2.1) Gecko/20021226 Debian/1.2.1-9 |
This mail is an automated notification from the bugs tracker
of the project: Guile.
/**************************************************************************/
[bugs #11197] Latest Modifications:
Changes by:
Kevin Ryde <address@hidden>
'Date:
Sat 12/04/04 at 22:02 (Australia/NSW)
------------------ Additional Follow-up Comments ----------------------------
In fact only bases 2, 10 and 16 look right. Others have a bad bignum size
calculation and overflow in various cases.
Only bases 2, 8, 10 and 16 are documented as supported, though others (below
16) are not explicitly rejected. Maybe that should change too.
/**************************************************************************/
[bugs #11197] Full Item Snapshot:
URL: <http://savannah.gnu.org/bugs/?func=detailitem&item_id=11197>
Project: Guile
Submitted by: 0
On: Fri 12/03/04 at 08:10
Category: None
Severity: 5 - Average
Item Group: None
Resolution: None
Privacy: Public
Assigned to: None
Status: Open
Summary: Error in string->number
Original Submission: guile> (string->number "111111" 7)
19608
guile> (string->number "111111" 8)
37449
guile> (string->number "111111" 9)
<unnamed port>:4:1: In procedure bignum in expression (string->number "111111"
9):
<unnamed port>:4:1: Numerical overflow
ABORT: (numerical-overflow)
Type "(backtrace)" to get more information or "(debug)" to enter the debugger.
guile> (string->number "111111" 10)
111111
guile> (string->number "111111" 11)
177156
Follow-up Comments
------------------
-------------------------------------------------------
Date: Sat 12/04/04 at 22:02 By: Kevin Ryde <kryde>
In fact only bases 2, 10 and 16 look right. Others have a bad bignum size
calculation and overflow in various cases.
Only bases 2, 8, 10 and 16 are documented as supported, though others (below
16) are not explicitly rejected. Maybe that should change too.
For detailed info, follow this link:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=11197>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/