From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Marius Vollmer Newsgroups: gmane.lisp.guile.user Subject: Re: number->string radix patch Date: Thu, 10 Jun 2004 18:47:54 +0200 Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Message-ID: <878yevjr5x.fsf@zagadka.ping.de> References: <20040103221857.GA518@Richard-Todds-Computer.local> <20040104035022.GA742@Richard-Todds-Computer.local> <3FF88AD5.6010701@vzavenue.net> <87isjr1bkb.fsf@alice.rotty.yi.org> <3FF8EF71.6090802@vzavenue.net> <20040105200131.GA492@Richard-Todds-Computer.local> <20040106184116.GA7618@Richard-Todds-Computer.local> <87fza8c976.fsf@zagadka.ping.de> <4B900A04-A30B-11D8-9EFC-000A95B4C7DC@vzavenue.net> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1086886103 20902 80.91.224.253 (10 Jun 2004 16:48:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 10 Jun 2004 16:48:23 +0000 (UTC) Cc: Robert Uhl , guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Thu Jun 10 18:48:11 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BYSio-0006P2-00 for ; Thu, 10 Jun 2004 18:48:10 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BYSjV-0007Nv-Nq for guile-user@m.gmane.org; Thu, 10 Jun 2004 12:48:53 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BYSjO-0007Nq-W0 for guile-user@gnu.org; Thu, 10 Jun 2004 12:48:47 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BYSjN-0007Ne-Ew for guile-user@gnu.org; Thu, 10 Jun 2004 12:48:46 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BYSjN-0007Nb-BD for guile-user@gnu.org; Thu, 10 Jun 2004 12:48:45 -0400 Original-Received: from [195.253.8.218] (helo=mail.dokom.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BYSib-0005mk-IJ for guile-user@gnu.org; Thu, 10 Jun 2004 12:47:57 -0400 Original-Received: from [195.138.44.60] (helo=zagadka.ping.de) by mail.dokom.net with smtp (Exim 3.36 #3) id 1BYSlk-0005vs-00 for guile-user@gnu.org; Thu, 10 Jun 2004 18:51:12 +0200 Original-Received: (qmail 20754 invoked by uid 1000); 10 Jun 2004 16:47:54 -0000 Original-To: Richard Todd In-Reply-To: <4B900A04-A30B-11D8-9EFC-000A95B4C7DC@vzavenue.net> (Richard Todd's message of "Tue, 11 May 2004 00:23:11 -0500") User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux) X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.user:3248 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:3248 Richard Todd writes: > I had done the original patch on a G4 machine. I'm thinking it's a > precision difference between macs and intel machines. For me, the difference is between compiling with optimization and without. Compiled with gcc 3.3.3 (Debian 20040422) on i386, CFLAGS=-g: guile> (number->string 0.25 2) "0.01" Compiled with CFLAGS=-O2: guile> (number->string 0.25 2) "0.010" So, what can we do about this? Reliable floating point reading and writing can be tricky, and we will eventually need to improve our routines anyway, see http://lists.gnu.org/archive/html/guile-devel/2002-05/msg00021.html For now, I'm inclined to mark the tests as unresolved. -- GPG: D5D4E405 - 2F9B BCCC 8527 692A 04E3 331E FAF8 226A D5D4 E405 _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user