Using an org-mode table in emacs to convert units using calc -


is there way use org-mode table automatic unit conversion?

i cannot work. wanted using simple table can input weights in ounces , let emacs convert them gramms.

|---------+---------------| | 100oz   |  ??g          | | 50oz    |  ??g          | |---------+---------------| #+tblfm: $2='(calc-eval ?????) 

i didn't find out put calc-eval, in calc mode conversion entering f.i. 100g, pressing u c "convert unit" , entering g "gramm".

thanks much.

u c runs calc-convert-units, obtains target unit in peculiar way (i.e. not stack). underlying function math-convert-units, , can use calc-eval convert between strings , calc objects.

|---+-------+-----------------| | # | 100oz | 2834.9523125 g  | | # | 50oz  | 1417.47615625 g | |---+-------+-----------------| #+tblfm: $3='(calc-eval (math-convert-units (calc-eval $2 'raw) (calc-eval "g" 'raw))) 

Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -