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: Wed, 3 Mar 2010 13:20:09 +0100 [thread overview]
Message-ID: <A8B7A53C-9879-411C-9366-F5EE79C3536C@gmail.com> (raw)
In-Reply-To: <4B8D71FE.3000300@alumni.ethz.ch>
Hi Michael,
very nice, thanks, I have applied the patch.
- Carsten
On Mar 2, 2010, at 9:15 PM, Michael Brand wrote:
> Hi Carsten
>
> Michael Brand wrote:
>> Yes, within a few days I will come back with this and/or a texinfo
>> patch for the Org info manual, at least chapter "3.5.2 Formula
>> syntax for Calc".
>
> The patch below is my proposal for the manual. Please feel free to
> improve it.
>
> I also played around quite a bit with the precision settings and
> will put the resulting examples into the Worg FAQ. But I would like
> to postpone my Worg FAQ update because its link to the manual would
> be confusing before the manual update itself will have been made.
>
> Is there a small issue with the behavior of the section link
> http://orgmode.org/manual/index.html#Top ?
> With Firefox 3.0.5 it sometimes jumps to where the html source
> fragment
> <a name="Top"></a>
> lies like expected but sometimes it jumps to where the html source
> fragment
> <link title="Top" rel="start" href="#Top">
> lies which could be annoying.
>
> Michael
>
>
> patch for org.texi, `---' file was taken from org-version 6.34c:
> =
> =
> =
> =
> =
> =
> =
> ======================================================================
> --- a/doc/org.texi 2010-01-18 00:10:46.000000000 +0100
> +++ b/doc/org.texi 2010-03-02 20:00:00.000000000 +0100
> @@ -2128,8 +2128,11 @@
> @code{org-calc-default-modes}.
>
> @example
> -p20 @r{switch the internal precision to 20 digits}
> -n3 s3 e2 f4 @r{normal, scientific, engineering, or fixed display
> format}
> +p20 @r{set the internal Calc calculation precision to 20
> digits}
> +n3 s3 e2 f4 @r{Normal, scientific, engineering, or fixed}
> + @r{format of the result of Calc passed back to Org.}
> + @r{Calc formatting is unlimited in precision as}
> + @r{long as the Calc calculation precision is greater.}
> D R @r{angle modes: degrees, radians}
> F S @r{fraction and symbolic modes}
> N @r{interpret all fields as numbers, use 0 for non-
> numbers}
> @@ -2139,8 +2142,16 @@
> @end example
>
> @noindent
> -In addition, you may provide a @code{printf} format specifier to
> -reformat the final result. A few examples:
> +Unless you use large integer numbers or high-precision-calculation
> +and -display for floating point numbers you may alternatively
> provide a
> +@code{printf} format specifier to reformat the Calc result after it
> has been
> +passed back to Org instead of letting Calc already do the
> +formatting@footnote{The @code{printf} reformatting is limited in
> precision
> +because the value passed to it is converted into an @code{integer} or
> +@code{double}. The @code{integer} is limited in size by truncating
> the
> +signed value to 32 bits. The @code{double} is limited in precision
> to 64
> +bits overall which leaves approximately 16 significant decimal
> digits.}.
> +A few examples:
>
> @example
> $1+$2 @r{Sum of first and second field}
> =
> =
> =
> =
> =
> =
> =
> ======================================================================
>
- Carsten
next prev parent reply other threads:[~2010-03-03 12:20 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
2010-02-27 8:11 ` Michael Brand
2010-03-02 20:15 ` Michael Brand
2010-03-03 12:20 ` Carsten Dominik [this message]
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=A8B7A53C-9879-411C-9366-F5EE79C3536C@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).