From mboxrd@z Thu Jan 1 00:00:00 1970 From: Karl Voit Subject: Re: Calc: Multiply time (hours) with a float Date: Mon, 19 Sep 2016 13:43:08 +0200 Message-ID: <2016-09-19T13-38-25@devnull.Karl-Voit.at> References: <2016-09-08T10-32-27@devnull.Karl-Voit.at> <2016-09-11T13-43-22@devnull.Karl-Voit.at> <87oa3u1vpn.fsf@luisa.c0t0d0s0.de> <2016-09-18T18-32-24@devnull.Karl-Voit.at> <874m5cs7tq.fsf@luisa.c0t0d0s0.de> <87oa3kqsy3.fsf@luisa.c0t0d0s0.de> Reply-To: Karl Voit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45644) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1blwyw-0001vq-KU for emacs-orgmode@gnu.org; Mon, 19 Sep 2016 07:43:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1blwyr-0000hs-Lw for emacs-orgmode@gnu.org; Mon, 19 Sep 2016 07:43:29 -0400 Received: from [195.159.176.226] (port=53420 helo=blaine.gmane.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1blwyr-0000gh-FF for emacs-orgmode@gnu.org; Mon, 19 Sep 2016 07:43:25 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1blwyk-0000YN-6p for emacs-orgmode@gnu.org; Mon, 19 Sep 2016 13:43:18 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org Hallo Michael, thanks for the pointer to http://orgmode.org/org.html#Formula-syntax-for-Lisp - it was very helpful for my understanding. * Michael Welle wrote: > Hello, > > Michael Welle writes: > [...] >> #+TBLFM: @2$3='(* $2 (org-time-string-to-hours "$1"));L > or converting $2 to a number before the calculation should work also, > but is more to write ;). Hm. I still got #ERROR. I reduced my issue to calculate the float (for hours) without multiplying it with "value": | time [h:m:s] | value | product | |--------------+---------+---------| | 09:15:00 | 2.54321 | #ERROR | #+TBLFM: @2$3='(org-time-string-to-hours $1) #+TBLFM: @2$3='(org-time-string-to-hours $1);L #+TBLFM: @2$3='(org-time-string-to-hours "$1");N ... each of the TBLFM results in the same error. At this stage, $2 is not my problem any more. Do you have any further idea? -- 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