From: Michael Brand <michael.ch.brand@gmail.com>
To: Kyle Andrews <kyle.c.andrews@gmail.com>
Cc: Emacs orgmode <emacs-orgmode@gnu.org>
Subject: Re: org-spreadsheet: formatting chops off units
Date: Thu, 6 Sep 2012 07:15:33 +0200 [thread overview]
Message-ID: <CALn3zogDuX2FN0n39xJndEmVsB59LQ=3f7e1E5anh_3YNjvL7g@mail.gmail.com> (raw)
In-Reply-To: <CAG3md+t--GqAbA9ZONCReyrYkB1OR86ztqKWu97G7LEy4QobGA@mail.gmail.com>
Hi Kyle
On Wed, Sep 5, 2012 at 11:46 PM, Kyle Andrews <kyle.c.andrews@gmail.com> wrote:
> If you type in '0.66138679 lb into calc directly, and press d f 2, calc
> displays 0.66 lb as desired. Is there any reason for the %.2f notation
> chops off the units? Is there some better way to accomplish what I
> want?
Org spreadsheet gives access to the format of calc, use
#+TBLFM: $2=uconvert($1, lb);f-2
or less recommended the format of Org spreadsheet with a text
#+TBLFM: $2=uconvert($1, lb);%.2f lb
Michael
next prev parent reply other threads:[~2012-09-06 5:15 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-05 21:46 org-spreadsheet: formatting chops off units Kyle Andrews
2012-09-06 3:08 ` Nick Dokos
2012-09-06 5:15 ` Michael Brand [this message]
2012-09-07 17:28 ` Michael Brand
2012-09-12 7:51 ` Bastien
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='CALn3zogDuX2FN0n39xJndEmVsB59LQ=3f7e1E5anh_3YNjvL7g@mail.gmail.com' \
--to=michael.ch.brand@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=kyle.c.andrews@gmail.com \
/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).