Okay, I see. There must be something wrong with my installation then, because with the exact same code, I get a

Parse Error in /pmwiki/cookbook/markupexprplus.php(176) : eval()'d code on line 1

Do you have any idea, what might be wrong here? Unfortunately it is (Murphy's law ;-)) 1) mission and time critical and 2) the only bug left. 

Martin

On 08 Sep, 2013,at 12:13 AM, Petko Yotov <[email protected]> wrote:

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

Petko

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
o'.

Petko


_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users
_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Reply via email to