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


From: Michael Welle
Subject: Re: [O] Calc: Multiply time (hours) with a float
Date: Sun, 11 Sep 2016 14:12:36 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux)

Hello,

Karl Voit <address@hidden> writes:

> * Karl Voit <address@hidden> wrote:
>> Hi!
>>
>> I do have following situation: I'd like to multiply a float with hours
>> which results in an error, obviously. However, I was not able to find
>> out how to do it.
>>
>> Minimal example with expected product:
>> 
>> | time [h:m:s] |   value | h * value |
>> |--------------+---------+-----------|
>> |     09:15:00 | 2.54321 | 23.524693 |
>>  #+TBLFM: @2$3=$2*$1
>
> I guess the last resort would be to do this would be with an elisp
> function.
>
> Is there no other way?
do you really need the result to be in decimal notation? If not, 
#+TBLFM:@2$3=$2*$1;T would work. If you need decimal notation you have
to provide your own function, I think.

Regards
hmw



reply via email to

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