all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Bernt Hansen <bernt@norang.ca>
To: Carsten Dominik <dominik@uva.nl>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>, r.thiel@uni-jena.de
Subject: Re: decimal fractions when summing up large numbers
Date: Wed, 24 Sep 2008 11:49:33 -0400	[thread overview]
Message-ID: <87k5d18rxu.fsf@gollum.intra.norang.ca> (raw)
In-Reply-To: <1EB2649A-3D01-4F94-982F-B6DD2718C467@uva.nl> (Carsten Dominik's message of "Wed\, 24 Sep 2008 17\:38\:59 +0200")

Carsten Dominik <dominik@uva.nl> 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

      reply	other threads:[~2008-09-24 15:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-24 15:15 decimal fractions when summing up large numbers Rainer Thiel
2008-09-24 15:38 ` Carsten Dominik
2008-09-24 15:49   ` Bernt Hansen [this message]

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87k5d18rxu.fsf@gollum.intra.norang.ca \
    --to=bernt@norang.ca \
    --cc=dominik@uva.nl \
    --cc=emacs-orgmode@gnu.org \
    --cc=r.thiel@uni-jena.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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.