From: Nils Gey <INVALID.NOREPLY@gnu.org>
To: Nils Gey <denemo@nilsgey.de>, bug-guile@gnu.org
Subject: [bug #31151] string->number radix only partly working
Date: Tue, 28 Sep 2010 13:34:49 +0000 [thread overview]
Message-ID: <20100928-153448.sv66805.87858@savannah.gnu.org> (raw)
In-Reply-To:
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/
next reply other threads:[~2010-09-28 13:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-28 13:34 Nils Gey [this message]
2010-11-15 22:41 ` [bug #31151] string->number radix only partly working Andy Wingo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100928-153448.sv66805.87858@savannah.gnu.org \
--to=invalid.noreply@gnu.org \
--cc=bug-guile@gnu.org \
--cc=denemo@nilsgey.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).