Re: [O] Bug: Babel calc sqrt float var

2013-12-10 Thread Eric S Fraga
Miguel Ruiz writes: [...] > #+begin_src calc :var x=0.8 > sqrt(x) > #+end_src I confirm that this doesn't work. However, putting 0.8 in quotes, as in var="0.8", works for me. -- : Eric S Fraga (0xFFFCF67D), Emacs 24.3.50.1, Org release_8.2.4-322-gece429

Re: [O] Bug: Babel calc sqrt float var

2013-12-10 Thread Rüdiger Sonderfeld
Hi, the problem is that calc does not operate on regular elisp types but instead uses a different format: (float NUM EXP) for decimal floats. But ob-calc.el seems to simply push any value it gets on the stack and assigns it to a variable. And since calc treats anything which isn't in such a l

[O] Bug: Babel calc sqrt float var

2013-12-10 Thread Miguel Ruiz
Hi, Please, I am communicating the following problematic behaviour: #--- problematic code #+begin_src calc  sqrt(0.8) #+end_src #+RESULTS: : 0.894427191 # OK #+begin_src calc :var x=0.8 sqrt(x) #+end_src #+RESULTS: =Debugger entered--Lisp error: (wrong