From: Uwe Brauer <oub@mat.ucm.es>
To: emacs-orgmode@gnu.org
Subject: Re: rounding when exporting
Date: Tue, 26 Jun 2018 08:58:06 +0200 [thread overview]
Message-ID: <87vaa6kpa9.fsf@mat.ucm.es> (raw)
In-Reply-To: 87bmby8ndz.fsf@alphaville.usersys.redhat.com
[-- Attachment #1: Type: text/plain, Size: 1305 bytes --]
> Uwe Brauer <oub@mat.ucm.es> writes:
> The exporters take the text to be exported from the buffer, so if the buffer contains
> arbitrary precision, then I don't think so: you'd have to apply a filter of some sort.
> It's easy enough however to set the format for calc, recalculate all the tables, export,
> then reset the format and recalculate once more to get back to where you were. Note
> that internally org calculates floating point numbers to 12 decimal places (roughly)
> but displays only 8 of them (to keep the display a bit more compact). See
> (info "(org) Formula Syntax for Calc")
> for details. Here's an example to use fixed-point format with 3 decimals:
> * Set floating point format to fixed point with 3 decimals :noexport:
> #+begin_src emacs-lisp
> (setq org-calc-default-modes '(calc-internal-prec 12 calc-float-format
> (fix 3) ;;; the default here was (float 8)
> calc-angle-mode deg calc-prefer-frac nil calc-symbolic-mode nil calc-date-format
> (YYYY "-" MM "-" DD " " Www
> (" " hh ":" mm))
> calc-display-working-message t))
> #+end_src
very useful, thanks a lot. Solved my issue
[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5025 bytes --]
prev parent reply other threads:[~2018-06-26 6:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-25 20:20 rounding when exporting Uwe Brauer
2018-06-25 23:19 ` Nick Dokos
2018-06-26 6:58 ` Uwe Brauer [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=87vaa6kpa9.fsf@mat.ucm.es \
--to=oub@mat.ucm.es \
--cc=emacs-orgmode@gnu.org \
/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).