emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] Calc: Multiply time (hours) with a float - solved by updating Or


From: Karl Voit
Subject: Re: [O] Calc: Multiply time (hours) with a float - solved by updating Org
Date: Tue, 20 Sep 2016 16:23:17 +0200
User-agent: slrn/pre1.0.0-18 (Linux)

* Karl Voit <address@hidden> wrote:
>
> | time [h:m:s] |   value | product |
> |--------------+---------+---------|
> |     09:15:00 | 2.54321 | #ERROR  |
> #+TBLFM: @2$3='(org-time-string-to-hours $1)
>
> OK, this is my current issue then.
>
> I'm using Org from git/maint version 8.3.4
> (release_8.3.4-33-gd522fc) and GNU Emacs 24.5.1 (i686-pc-mingw32
> Windows) as well as Emacs 24.4.1 on GNU/Linux.

I updated to Org-mode version 8.3.4 (release_8.3.4-115-gf46b92):

| time [h:m:s] |   value | product |
|--------------+---------+---------|
|     09:15:00 | 2.54321 |    9.25 |
#+TBLFM: @2$3='(org-time-string-to-hours $1)

... now works after Org update.

| time [h:m:s] |   value |    product |
|--------------+---------+------------|
|     09:15:00 | 2.54321 | 23.5246925 |
#+TBLFM: @2$3='(* $2 (org-time-string-to-hours "$1"));L

... now works as well.

I am so sorry that this took you so much time just because of my
old code. However, I learned a lot from your comments - Thanks for
that! :-)

-- 
mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML to Org-mode:
       > get Memacs from https://github.com/novoid/Memacs <

https://github.com/novoid/extract_pdf_annotations_to_orgmode + more on github




reply via email to

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