unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* [bug #31151] string->number radix only partly working
@ 2010-09-28 13:34 Nils Gey
  2010-11-15 22:41 ` Andy Wingo
  0 siblings, 1 reply; 2+ messages in thread
From: Nils Gey @ 2010-09-28 13:34 UTC (permalink / raw)
  To: Nils Gey, bug-guile


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/




^ permalink raw reply	[flat|nested] 2+ messages in thread

* [bug #31151] string->number radix only partly working
  2010-09-28 13:34 [bug #31151] string->number radix only partly working Nils Gey
@ 2010-11-15 22:41 ` Andy Wingo
  0 siblings, 0 replies; 2+ messages in thread
From: Andy Wingo @ 2010-11-15 22:41 UTC (permalink / raw)
  To: Andy Wingo, Nils Gey, bug-guile


Update of bug #31151 (project guile):

                  Status:                    None => Fixed                  
             Open/Closed:                    Open => Closed                 

    _______________________________________________________

Follow-up Comment #1:

Fixed in 1.9 git,. Thanks for the report!

    _______________________________________________________

Reply to this item at:

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

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




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-11-15 22:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-28 13:34 [bug #31151] string->number radix only partly working Nils Gey
2010-11-15 22:41 ` Andy Wingo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).