emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] rounding when exporting


From: Uwe Brauer
Subject: Re: [O] rounding when exporting
Date: Tue, 26 Jun 2018 08:58:06 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

   > Uwe Brauer <address@hidden> 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: smime.p7s
Description: S/MIME cryptographic signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]