Hello,
I have a student who encountered something odd in MakeCode. The student set a variable to 16.9 at program start. Then “On Shake” change the variable by -1.3. However then the variable is displaying as 15.599999999 instead of 15.6. Tried changing input to “On Tilt” or “On Button A Press” with same results. Tried setting variable to different numbers like 17.9 or 18.9 with similar results. However for some reason setting variable to 14.9 and subtracting 1.3 did indeed equal 13.6.
Any ideas what is happening?
Thanks