[pmwiki-users] MarkupExprPlus calculating with fractions

Martin Kerz mkerz at me.com
Sun Sep 8 06:58:23 CDT 2013


That did the job. You're a hero! Thanks a lot. 

--
Martin Kerz

/// martinkerz at me.com

Am 08.09.2013 um 13:28 schrieb Petko Yotov <5ko at 5ko.fr>:

> Martin Kerz writes:
> 
>> No it doesn't, but it works with commas, i.e.
>> 
>> {(add 0,5 4,2 5,9)}
>> 
>> So I guess, my problem is somewhat solved, as I have a workaround. A fix would be appreciated, though.
> 
> I changed my locale and on my computer with fr_FR.UTF-8 neither with dots, nor with commas works. Dots: displays nothing, commas: displays 9 instead of 10,6.
> 
> But when I added a line after the first setlocale(), or after the XLPage() call:
> setlocale(LC_NUMERIC, 'C');
> 
> then it works fine with dots.
> 
> Petko
> 
>> Am 08.09.2013 um 13:14 schrieb Petko Yotov <5ko at 5ko.fr>:
>> 
>> >>>> {(add 0.5 4.2 5.9)} correctly prints 10.6
>> >
>> > Does the above work for you or not?  (no PageTextVariables, just numbers)
>> >
>> > Petko
> 
> 
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-users



More information about the pmwiki-users mailing list