[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Table formula to convert hex to dec
From: |
Michael Brand |
Subject: |
Re: [O] Table formula to convert hex to dec |
Date: |
Sun, 24 Jul 2011 11:52:32 +0200 |
Hi Russell
On Sun, Jul 24, 2011 at 10:00, Russell Adams <address@hidden> wrote:
> Has anyone been able to convert a column of hex numbers to decimal in
> another column?
Emacs Calc has a radix syntax "2#10" to "36#10", so this works:
| 16#10 | 16 | 16#10 |
#+TBLFM: $2 = $1 :: $3 = '(format "16#%x" $2); N
It would be nice to have not only "N" for the Org table formula mode
string like now but also optionally all possible Emacs Calc radix, so
the above would be simply (does not work yet):
| 16#10 | 16 | 16#10 |
#+TBLFM: $2 = $1 :: $3 = $2; N16#
Michael