[pmwiki-users] MarkupExprPlus calculating with fractions

Petko Yotov 5ko at 5ko.fr
Sat Sep 7 17:13:18 CDT 2013

Martin Kerz writes:
> it seems, that it's not possible to calculate with fractions  
> using MarkupExprPlus. 

On the page http://www.pmwiki.org/wiki/Cookbook/MarkupExprPlus you can see  
that operations with decimal numbers are correct.

  {(add 0.5 4.2 5.9)} correctly prints 10.6


> I want to do 
> (:Sum:{(add {$:U} {$:K})}:)
> It works just fine with integers.
> Whenever I use a decimal fraction, like 
> :U:0.5
> It produces an error.

I have no error with your code. Check if you have 0 'zero' and not O 'letter  


More information about the pmwiki-users mailing list