From: "Štěpán Němec" <stepnem@gmail.com>
To: "Sébastien Vauban"
<public-wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@plane.gmane.org>
Cc: public-emacs-orgmode-mXXj517/zsQ@plane.gmane.org
Subject: Re: [BUG] Table formula with org-hh:mm-string-to-minutes
Date: Tue, 05 Oct 2010 20:13:37 +0200 [thread overview]
Message-ID: <87ocb81p9q.fsf@gmail.com> (raw)
In-Reply-To: <87fwwkyc46.fsf@mundaneum.com> ("Sébastien Vauban"'s message of "Tue, 05 Oct 2010 15:59:05 +0200")
Sébastien Vauban <wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@public.gmane.org>
writes:
> Hello,
>
> I use the following table and formulas to convert HH:MM times to fractional
> times, so that I can sum up the times (and convert them to money...)
>
> | Task | *HH:MM* | *Frac* |
> |--------+---------+--------|
> | Item 1 | 20:27 | 20.45 |
> | Item 2 | 2:25 | 2.42 |
> | Item 3 | 2:07 | 2.12 |
> | Item 4 | 0:19 | 0.00 |
> | Item 5 | 0:43 | 0.72 |
> | Item 6 | 0:05 | 0.08 |
> | Item 7 | 0:32 | 0.53 |
> | Item 8 | 0:16 | 0.27 |
> |--------+---------+--------|
> | | | 26.59 |
> #+TBLFM: $3='(/ (float (org-hh:mm-string-to-minutes $2))
> 60.);%.2f::@5$3=0.00;%.2f::@10$3=vsum(@-I..@-II)
I don't really understand Calc and Org table formulas, but the
"%.2f::@5$3=0.00;" in there looks pretty suspicious, and removing it
fixes it for me. ;-)
Štěpán
next prev parent reply other threads:[~2010-10-05 18:15 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-05 13:59 [BUG] Table formula with org-hh:mm-string-to-minutes Sébastien Vauban
2010-10-05 18:13 ` Štěpán Němec [this message]
2010-10-05 19:11 ` Achim Gratz
2010-10-06 8:03 ` Sébastien Vauban
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=87ocb81p9q.fsf@gmail.com \
--to=stepnem@gmail.com \
--cc=public-emacs-orgmode-mXXj517/zsQ@plane.gmane.org \
--cc=public-wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@plane.gmane.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).