Addition and subtraction problem


#1

Hi everyone,
I created 2 virtual buttons and 2 piston to increase (or decrease) the value of one decimal variable by 0.1 at once.
The image is one test piston and you can see where is the problem after 2 press …

What am I doing wrong?


#2

I find the solution …

round(variableName,1)