Is there a way to use an org-mode table to do automatic unit conversion?
I cannot get it to work. What I wanted to do is using a simple table where i can input some weights in ounces and let emacs convert them into gramms.
|---------+---------------|
| 100oz | ??g |
| 50oz | ??g |
|---------+---------------|
#+TBLFM: $2='(calc-eval ?????)
I didn’t find out what to put into the calc-eval, in calc mode i would do the conversion by entering f.i. 100g, then pressing u c for “convert unit” and then entering g for “gramm”.
Thanks very much.
u crunscalc-convert-units, which obtains the target unit in a peculiar way (i.e. not from the stack). The underlying function ismath-convert-units, and we can usecalc-evalto convert between strings and calc objects.