Actually, when I try your sample calculation on mklauber's site,
<$calc>round({{!!amount}}/4 * 1.5)</$calc>
I also get "2".
That site still uses 5.1.9
So maybe you should double-check that the field "amount" contains the value
you think it does. I suppose its possible that TW 5.1.14 introduced an error
that was corrected later.
Perhaps export and post the tiddler that is causing the problems, so we can
review the actual numbers.
Good luck!
On Thursday, October 10, 2019 at 8:33:43 AM UTC-7, Surya wrote:
>
> Hello,
>
> The "Calc"-Plugin from https://mklauber.github.io/tiddly-mathjs/ does
> work only half on my wiki and also on a freshly downloaded wiki. Both
> Version 5.1.21.
> It calculates correctly with simple numbers like <$calc>round({{!!amount}}
> /2* 2)</$calc>.
> But not with numbers like 0.5. For example, if I
> write <$calc>round({{!!amount}} /4* 1.5)</$calc> (amount-field has "4"),
> then the result should be 1.5. But the result is 2.
> I tried it also with <$calc>round({{!!amount}} /4* 1,5) and with
> <$calc>round({{!!amount}} /4* 1/2) and <$calc>round({{!!amount}} /4* 1 /2).
> But nothing helped.
>
> I do not think, that the problem is in my wiki, because it is the same
> behaviour in a freshly downloaded and totally empty TW (same version).
> In another wiki of mine with an older version (5.1.14) it works
> completely- also with numbers like 1.5.
>
> How to solve that problem??
> Thanks for your help!
> Surya
>
>
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/b15688e1-52fa-4c0a-8dc8-6734a46d0e54%40googlegroups.com.