Hi,
I am incrementing an instance variable. When I come to display this value on the screen, Construct2 is showing a large number of decimal places that should not be there according to the calculation.
I attach a capx doc. In this example, I am incrementing the value 10 by 0.2, and had expected to see:
10
10.2
10.4
etc
Instead, the display is showing:
10
10.2
10.399999999999998
10.599999999999996
etc
Do I need to round to 2 decimal places each time? It feels I shouldn't need to do this kind of tidying up for such a simple calculation.
http://studioxenon.com/code/rounding_error/rounding_error.capx