From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nils Gey Newsgroups: gmane.lisp.guile.bugs Subject: [bug #31151] string->number radix only partly working Date: Tue, 28 Sep 2010 13:34:49 +0000 Message-ID: <20100928-153448.sv66805.87858@savannah.gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain;charset=UTF-8 X-Trace: dough.gmane.org 1285681302 26864 80.91.229.12 (28 Sep 2010 13:41:42 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 28 Sep 2010 13:41:42 +0000 (UTC) To: Nils Gey , bug-guile@gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Tue Sep 28 15:41:40 2010 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1P0aR4-0005xE-CC for guile-bugs@m.gmane.org; Tue, 28 Sep 2010 15:41:34 +0200 Original-Received: from localhost ([127.0.0.1]:33873 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P0aKn-0006lo-IC for guile-bugs@m.gmane.org; Tue, 28 Sep 2010 09:35:05 -0400 Original-Received: from [140.186.70.92] (port=44453 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P0aKZ-0006ii-Sb for bug-guile@gnu.org; Tue, 28 Sep 2010 09:34:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1P0aKY-0008Ga-Pw for bug-guile@gnu.org; Tue, 28 Sep 2010 09:34:51 -0400 Original-Received: from colonialone.fsf.org ([140.186.70.51]:44246 helo=internal.in.savannah.gnu.org) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P0aKY-0008GM-Nh for bug-guile@gnu.org; Tue, 28 Sep 2010 09:34:50 -0400 Original-Received: from [10.1.0.103] (helo=frontend.in.savannah.gnu.org) by internal.in.savannah.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P0aKX-0003Ic-SB; Tue, 28 Sep 2010 13:34:49 +0000 Original-Received: from www-data by frontend.in.savannah.gnu.org with local (Exim 4.69) (envelope-from ) id 1P0aKX-0006Fg-P0; Tue, 28 Sep 2010 13:34:49 +0000 X-Savane-Server: savannah.gnu.org:443 [10.1.0.103] X-Savane-Project: guile X-Savane-Tracker: bugs X-Savane-Item-ID: 31151 User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.10) Gecko/20100916 Firefox/3.6.10 X-Apparently-From: 78.48.194.212 (Savane authenticated user steele) Original-References: In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:4822 Archived-At: URL: 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: _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/