From: Michael Brand <michael.ch.brand@gmail.com>
To: thomas@koch.ro
Cc: emacs-orgmode@gnu.org
Subject: Re: how to avoid floating number problems with org-table for finances?
Date: Thu, 1 Nov 2012 19:04:39 +0100 [thread overview]
Message-ID: <CALn3zojnJf4A0oqYKwXrf3gVUBDQUw-HOdPB=iFDhayik5yB0w@mail.gmail.com> (raw)
In-Reply-To: <201210121907.00833.thomas@koch.ro>
Hi Thomas
I hope it’s not too late but I got into some backlog with reading the list.
On Fri, Oct 12, 2012 at 7:06 PM, Thomas Koch <thomas@koch.ro> wrote:
> #+TBLFM: @4$1=vsum(@1..@3);%.40f
For your example I would recommend:
#+TBLFM: @4$1=vsum(@1..@3); f-2
or if you really want 40 digits precision for the calculations behind:
#+TBLFM: @4$1=vsum(@1..@3); p40 f-2
Please read my explanations here:
http://orgmode.org/worg/org-faq.html#table-high-precision
The integer calculation you suggested with decimal point notation is
not possible out of the box and if at all I would rather go the way of
Calc Fractions to get infinite precision:
| 3:10 |
| 3:10 |
| 3:10 |
| 9:10 |
#+TBLFM: @4$1=vsum(@1..@3); F
Michael
prev parent reply other threads:[~2012-11-01 18:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-12 17:06 how to avoid floating number problems with org-table for finances? Thomas Koch
2012-10-12 18:00 ` Johan Sandblom
2012-10-12 18:04 ` Johan Sandblom
2012-11-01 18:04 ` Michael Brand [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
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CALn3zojnJf4A0oqYKwXrf3gVUBDQUw-HOdPB=iFDhayik5yB0w@mail.gmail.com' \
--to=michael.ch.brand@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=thomas@koch.ro \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).