- Home /
Unity Position Error?
Basically, i have found that unity really does have some issues when it comes to positions, instead of showing "0" it shows "3.814697e-06" ( which equates to " 0.000003814697 " ) instead, why does it even show this value?!
Here is my proof :
( Look at the highlighted red area of the images )
( The chunk 8 blocks away from it ) : http://i.imgur.com/9Ch6fzN.png
( The " gliched " chunk ) : http://i.imgur.com/2HIR4rW.png
Could anybody link me to the cause of this issue?
ok thanks, i was really getting annoyed about it :)
Just for the record "3.814697e-06" does NOT equates to 3814697 but 0.000003814697. And that is floating point for you... For all intends and purposes it is still visually 0
yeah, i noticed that maths error, i forgot the "e-" part, thanks for noting that :) , i will accept robertu because he explained it more, and the reason why this is much of a big deal to me is because my chunk system looks for a specific value, which even when offset that tiny amount does not get found :)
He should change his comment to an answer for you to accept it though ;) You just thumbed it up, that's it :p
Answer by robertbu · Aug 16, 2013 at 05:52 PM
Actually 3.814697e-06 equates to 0.000003814697. In other words very nearly 0. It doesn't show the value because of all the zeros. Floating point precision has been asked about and answered many times on this list. This is not a Unity issue, but an issue shared by any language or app that is using floating point numbrs. Do a Google search for "Unity3d float precision".
Your answer
![](https://koobas.hobune.stream/wayback/20220613112344im_/https://answers.unity.com/themes/thub/images/avi.jpg)