This mail is an automated notification from the bugs tracker
 of the project: Guile.

/**************************************************************************/
[bugs #11197] Latest Modifications:

Changes by: 
                Kevin Ryde <[EMAIL PROTECTED]>
'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/





_______________________________________________
Bug-guile mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/bug-guile

Reply via email to