From: "Michaël Parienti" <michael@parienti.name>
To: emacs-orgmode@gnu.org
Subject: Calc formula with multi value and format string
Date: Wed, 10 Jun 2009 00:07:11 +0200 [thread overview]
Message-ID: <20090610000711.10845b38@naurin.parienti.lan> (raw)
Hi,
I would like to put two computed values (sum and mean) into a cell of
a table. Reading the calc manual I found the following syntax:
|---------+---------------|
| | Title |
|---------+---------------|
| Label 1 | 0 |
| Label 2 | 1 |
|---------+---------------|
| Label 3 | 1 |
|---------+---------------|
| | 0.66666667, 2 |
|---------+---------------|
#+TBLFM: $LR2=vmean(@2..-I),vsum(@2..-I)::
Now I would like to format the meanm, but I don’t know where I should
put the format string. I tried several possibilities without success:
$LR2=vmean(@2..-I);%.2f,vsum(@2..-I):: displays 0.67,vsum(@2..-I)
$LR2=vmean(@2..-I),vsum(@2..-I);%.2f:: displays 0.00
$LR2=vsum(@2..-I),vmean(@2..-I);%.2f:: displays 2.00
(I don’t mind which value comes first)
Has anyone any idea to help me? Can I set the org-calc-default-modes
variable for just a table?
--
Michaël P
gpg: D4C8 F73D A000 71C7 44EF 27E6 8982 4991 7126 3CE3
next reply other threads:[~2009-06-09 22:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-09 22:07 Michaël Parienti [this message]
2009-06-10 7:07 ` Calc formula with multi value and format string Carsten Dominik
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090610000711.10845b38@naurin.parienti.lan \
--to=michael@parienti.name \
--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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.