[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Using constants in columns
From: |
Michael Brand |
Subject: |
Re: [O] Using constants in columns |
Date: |
Sat, 17 Oct 2015 20:00:40 +0200 |
Hi Guido
On Sat, Oct 17, 2015 at 1:47 PM, Guido Van Hoecke <address@hidden> wrote:
> I have not found a way to specify the vector in a constant.
You can access the elements of the vector constant suggested by Eric
with Calc's subscript function:
#+CONSTANTS: vat=[1.15,1.21,1.40]
| Amount | VAT | Total |
|--------+-----+--------|
| 100 | 1 | 115.00 |
| 100 | 2 | 121.00 |
#+TBLFM: $3 = $1 * subscr($vat, $2); %.2f
Michael
- [O] Using constants in columns, Guido Van Hoecke, 2015/10/16
- Re: [O] Using constants in columns, Eric S Fraga, 2015/10/16
- Re: [O] Using constants in columns, Guido Van Hoecke, 2015/10/16
- Re: [O] Using constants in columns, Eric S Fraga, 2015/10/16
- Re: [O] Using constants in columns, Guido Van Hoecke, 2015/10/17
- Re: [O] Using constants in columns,
Michael Brand <=
- Re: [O] Using constants in columns, Guido Van Hoecke, 2015/10/17
- Re: [O] Using constants in columns, Eric S Fraga, 2015/10/19
- Re: [O] Using constants in columns, Guido Van Hoecke, 2015/10/19