From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Bill Schottstaedt Newsgroups: gmane.lisp.guile.bugs Subject: number->string of float with radix Date: Mon, 14 Oct 2002 03:55:02 -0700 Sender: bug-guile-admin@gnu.org Message-ID: <200210141055.DAA10691@cmn14.stanford.edu> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 (NeXT Mail 3.3 v148.2.1) Content-Type: text/plain X-Trace: main.gmane.org 1034592945 15561 127.0.0.1 (14 Oct 2002 10:55:45 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 14 Oct 2002 10:55:45 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1812sx-00042p-00 for ; Mon, 14 Oct 2002 12:55:44 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 1812tM-0000RJ-00; Mon, 14 Oct 2002 06:56:08 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 1812sP-0000Co-00 for bug-guile@gnu.org; Mon, 14 Oct 2002 06:55:09 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 1812sN-0000CT-00 for bug-guile@gnu.org; Mon, 14 Oct 2002 06:55:08 -0400 Original-Received: from cm-mail.stanford.edu ([171.64.197.135]) by monty-python.gnu.org with esmtp (Exim 4.10) id 1812sM-0000CB-00 for bug-guile@gnu.org; Mon, 14 Oct 2002 06:55:06 -0400 Original-Received: from cmn14.stanford.edu (cmn14.stanford.edu [171.64.197.163]) by cm-mail.stanford.edu (8.11.6/8.11.6) with ESMTP id g9EAt5L32622 for ; Mon, 14 Oct 2002 03:55:05 -0700 Original-Received: (from bil@localhost) by cmn14.stanford.edu (8.9.3/8.9.3) id DAA10691 for bug-guile@gnu.org; Mon, 14 Oct 2002 03:55:04 -0700 (PDT) X-Nextstep-Mailer: Mail 3.3 [m68k] (Enhance 2.2p2) Original-Received: by NeXT.Mailer (1.148.2.1) Original-To: bug-guile@gnu.org Errors-To: bug-guile-admin@gnu.org X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Bug reports for GUILE, GNU's Ubiquitous Extension Language List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.lisp.guile.bugs:517 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.bugs:517 guile> (number->string 5 2.0) standard input:1:1: In procedure number->string in expression (number->string 5 2.0): standard input:1:1: Wrong type argument in position 2 (expecting INUMP): 2.0 ABORT: (wrong-type-arg) "INUMP" is internal jargon -- "integer" or "exact integer" would be better. Also, I wonder about these kinds of calls: guile> (number->string 10.5 2) "10.5" It's actually not senseless to have base-2 float notation ("1010.1", "a.8" hex), but if Guile just returns base 10, maybe it should warn the caller? Otherwise, for example, string->number does not invert number->string: guile> (string->number "10.5" 2) #f _______________________________________________ Bug-guile mailing list Bug-guile@gnu.org http://mail.gnu.org/mailman/listinfo/bug-guile