From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: decimal fractions when summing up large numbers Date: Wed, 24 Sep 2008 11:49:33 -0400 Message-ID: <87k5d18rxu.fsf@gollum.intra.norang.ca> References: <1EB2649A-3D01-4F94-982F-B6DD2718C467@uva.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KiWch-0006JJ-S8 for emacs-orgmode@gnu.org; Wed, 24 Sep 2008 11:49:51 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KiWcg-0006Ix-E2 for emacs-orgmode@gnu.org; Wed, 24 Sep 2008 11:49:50 -0400 Received: from [199.232.76.173] (port=50111 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KiWcg-0006Iu-8B for emacs-orgmode@gnu.org; Wed, 24 Sep 2008 11:49:50 -0400 Received: from mho-02-bos.mailhop.org ([63.208.196.179]:53700) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KiWcd-0004tn-Vs for emacs-orgmode@gnu.org; Wed, 24 Sep 2008 11:49:50 -0400 In-Reply-To: <1EB2649A-3D01-4F94-982F-B6DD2718C467@uva.nl> (Carsten Dominik's message of "Wed\, 24 Sep 2008 17\:38\:59 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Carsten Dominik Cc: emacs-orgmode , r.thiel@uni-jena.de Carsten Dominik writes: > turns out, org-table-sum is an old function I have not looked at for a > long time. It used (format "%g" res) to format the final result for > display - bad idea indeed, because that causes the unwanted rounding. > > I have removed this, the change has just been pushed to the git repo. > :) Carsten is too fast. I was going to ship a patch that just changed %g to %s in the format call (since that seemed to work for me) but when I pulled the new code from git master it was already fixed. Great job Carsten! Rainer: Oh and thanks for bringing this up - I didn't know about C-c + in tables until a few minutes ago. :) -Bernt