I have one little question regarding the decimal dot of a value variable.

I have a rule which does “X = X + 0.01” (X= value of the value-variable)

My problem now is that after a few times the X is displayed with a lot of digits behind the decimal dot. (e.g. 612.5899999999995)

Over the time i will have wrong values in X.

I want to change this to always generate X with max 2 digits behind the decimal dot (612.59).

Can anyone help me to get this done ?

Thank you very much !

]]>I have one little question regarding the decimal dot of a value variable.

I have a rule which does “X = X + 0.01” (X= value of the value-variable)

My problem now is that after a few times the X is displayed with a lot of digits behind the decimal dot. (e.g. 612.5899999999995)

Over the time i will have wrong values in X.

I want to change this to always generate X with max 2 digits behind the decimal dot (612.59).

Can anyone help me to get this done ?

Thank you very much !

]]>X = X + 0.01

Try the following:

`$X = round($X + 0.01, 2)`

]]>