Bad math calculations

CharlysoleCharlysole Tortosa, SpainMember, PRO Posts: 3

Hi, i am having some problems with basic math calculations...
Not me, a game with these actors:

There are 7 actors in total
3 for add and 3 for subtract (in real numbers)
1 for display the result

(On touch is pressed)
Actor A adds 10
Actor B adds 1
Actor C adds 0.01

Actor D subtract 10
Actor E subtract 1
Actor F subtract 0.01

F+E+D = 11.01 thats fine
but
11.01 - B - A = 0.01? (suposed to be)
but
NOT FOR ME
Result is 0.0099999999999998

Any explanation?
Thanks!

Comments

Sign In or Register to comment.