bug-guile
[Top][All Lists]
Advanced

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

[bug #31151] string->number radix only partly working


From: Nils Gey
Subject: [bug #31151] string->number radix only partly working
Date: Tue, 28 Sep 2010 13:34:49 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.10) Gecko/20100916 Firefox/3.6.10

URL:
  <http://savannah.gnu.org/bugs/?31151>

                 Summary: string->number radix only partly working
                 Project: Guile
            Submitted by: steele
            Submitted on: Tue 28 Sep 2010 03:34:48 PM CEST
                Category: None
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

Hello,

I'm using guile 1.8.7 and I see that (number->string 16 35) works (result is
"g") but (string->number "g" 35) returns #f.

In string->number it works from "0" to "f", but higher numbers fail.

The guile docs
http://www.gnu.org/software/guile/manual/html_node/Conversion.html say that
string->number is only available with Radix 2 8 10 16 which is at least
wrong.

I work with radix 7 all the time and it works fine. 

And radix 35 works at least up to "f". After a short test it seems that all
radixes work only up to "f", not only 35.

It would be great if this could be extended or at least can be documented
correctly (that all radices up to 16 work fine and that the limit is indeed
"f") 



 




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?31151>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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