Comments and answers for "Subtraction gives completely wrong answers"
http://answers.unity.com/questions/439034/subtraction-gives-completely-wrong-answers.html
The latest comments and answers for the question "Subtraction gives completely wrong answers"Comment by Eric5h5
http://answers.unity.com/comments/439051/view.html
That's just scientific notation.Tue, 16 Apr 2013 03:49:42 GMTEric5h5Comment by xKroniK13x
http://answers.unity.com/comments/439050/view.html
E is scientific notation, essentially. So, 5.0960464E-08 is the same as 5.0960464 x 10^-8 . So that means you move the decimal eight places to the left. The same would be true if it was a positive eight, you'd just move it to the right eight places. Glad to help :)Tue, 16 Apr 2013 03:49:15 GMTxKroniK13xComment by CloverKitsune
http://answers.unity.com/comments/439047/view.html
Sorry, but without $$anonymous$$roni$$anonymous$$'s helpful answer I wouldn't have known that an E means that a number like 5.09etc. is actually a tiny decimal.Tue, 16 Apr 2013 03:43:06 GMTCloverKitsuneComment by Eric5h5
http://answers.unity.com/comments/439040/view.html
It's not "completely wrong", it's only very slightly wrong, and you should always expect that when using floating point.Tue, 16 Apr 2013 03:28:38 GMTEric5h5Answer by xKroniK13x
http://answers.unity.com/answers/439039/view.html
A lot of times things like this will have weird decimals. 5.0960464E-08 is essentially 0, since it is .000000050960464. If you're aiming for 0 here, it's negligible. I've had lot of crazy decimals like this throughout coding, especially when doing something like manipulating the positions of a player. Unless it is clean cut like 2+2=4, then you may get weird numbers.Tue, 16 Apr 2013 03:26:17 GMTxKroniK13x