From: Carsten Dominik <carsten.dominik@gmail.com>
To: Michael Brand <michael.brand@alumni.ethz.ch>
Cc: emacs-orgmode@gnu.org
Subject: Re: Precision setting for spreadsheet calculation
Date: Sat, 27 Feb 2010 00:11:31 +0100 [thread overview]
Message-ID: <7649555B-447F-486D-94A4-2139971A7AA9@gmail.com> (raw)
In-Reply-To: <4B88440B.9060203@alumni.ethz.ch>
On Feb 26, 2010, at 10:58 PM, Michael Brand wrote:
> Carsten Dominik wrote:
>> these are the internals of calc, about which I cannot do much.
>
> But
>
> | 0.16666666666666666667 |
> #+TBLFM: $1 = 1 / 2 * 3; p20 f20
>
> shows that the internals of calc are ok, isn't it?
Hi Michael,
you are completely right, I was wrong.
The other issue that is playing into this is that when
using a printf format specifier, the number is first
converted into a Lisp number, which is a double, with
16 significant digits... At this step, the additional
digits are lost.
Maybe you find this interesting enough so that I can
persuade you to write a FAQ entry about these issues? :-)
- Carsten
>
>> Michael Brand wrote:
>>> But instead of
>>>
>>> | 0.166666666666666660 |
>>> #+TBLFM: $1 = 1 / 2 * 3; %.18f p20 f20
>>>
>>> which I get I would expect
>>>
>>> | 0.166666666666666667 |
>>> #+TBLFM: $1 = 1 / 2 * 3; %.18f p20 f20
- Carsten
next prev parent reply other threads:[~2010-02-26 23:11 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-26 20:16 Precision setting for spreadsheet calculation Michael Brand
2010-02-26 20:34 ` Carsten Dominik
2010-02-26 21:12 ` Michael Brand
2010-02-26 21:28 ` Carsten Dominik
2010-02-26 21:58 ` Michael Brand
2010-02-26 23:11 ` Carsten Dominik [this message]
2010-02-27 8:11 ` Michael Brand
2010-03-02 20:15 ` Michael Brand
2010-03-03 12:20 ` Carsten Dominik
2010-04-18 13:41 ` Michael Brand
2010-04-21 15:52 ` Carsten Dominik
[not found] <4B90C320.8060100@alumni.ethz.ch>
2010-03-11 6:28 ` Fwd: " Carsten Dominik
2010-03-11 9:29 ` Eric S Fraga
2010-03-11 11:35 ` Carsten Dominik
2010-03-11 12:18 ` Eric S Fraga
2010-03-11 19:17 ` Michael Brand
[not found] ` <22909.1268336968@gamaville.dokosmarshall.org>
2010-03-11 20:04 ` Eric S Fraga
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=7649555B-447F-486D-94A4-2139971A7AA9@gmail.com \
--to=carsten.dominik@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=michael.brand@alumni.ethz.ch \
/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).