Rounding negative number results in positive result

Can anyone explain why mu(round) doesn’t quite work as expected when using a variable?

And also valid for floor/ceiling as well.

Can you check if this is only affecting this specific variable from Tasker for you or all other global variables that have negative values?

It seems to be only this one, but just noticed, that if you look closely, the minus sign is slightly different… And also diffrent from when sending a set variable from Tasker.

So, my guess is that the data provider ( is using a slightly different minus sign that kwgt will not recognise.

So, I guess I just stick to the workaround I did in kwgt and seems to work…

Had to change it anyway, tasker didn’t like the weird - either…

So now it works as it should in KWGT as well.