emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Charles Millar <millarc@verizon.net>
To: emacs-orgmode@gnu.org
Subject: Re: Bug in vsum in org-mode table?
Date: Sun, 24 Apr 2016 12:41:36 -0400	[thread overview]
Message-ID: <16c7e3e5-1898-c20a-ed59-d1a5d9ee5efc@verizon.net> (raw)
In-Reply-To: <571AA1D4.2070904@free.fr>

[-- Attachment #1: Type: text/plain, Size: 804 bytes --]



On 04/22/2016 06:12 PM, Thierry Banel wrote:
> Le 22/04/2016 22:10, Charles Millar a écrit :
>>
>> On 04/22/2016 03:34 PM, Thierry Banel wrote:
>>> You can format the result as *2.0* with the *f1* modifier
>>> (or *f5* to get *2.00000* and so on)
>>>
>>> #+TBLFM: @>$1=vsum(@2..@>>)*;f1*
>>>
>> In the manual the decimal format %.2f, etc. is shown as an example 
>> but apparently the f2 format is not mentioned.
>>
>> Is the %.Xf format preferred or is either one OK?
>>
>> Regards,
>>
>> Charlie Millar
>
> *%.2f* is handy for those who are used to *printf()* syntax (in the C 
> language).
> But Calc unlimited precision numbers are converted to double floats 
> before applying *%.2f*
> Whereas *f2* operates on Calc numbers without conversion.
Thank you, Thierry.




[-- Attachment #2: Type: text/html, Size: 2082 bytes --]

      reply	other threads:[~2016-04-24 16:42 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-22 19:00 Bug in vsum in org-mode table? Kaushal Modi
2016-04-22 19:34 ` Thierry Banel
2016-04-22 20:10   ` Charles Millar
2016-04-22 20:46     ` Kaushal Modi
2016-04-22 22:12     ` Thierry Banel
2016-04-24 16:41       ` Charles Millar [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=16c7e3e5-1898-c20a-ed59-d1a5d9ee5efc@verizon.net \
    --to=millarc@verizon.net \
    --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).