- Home /
Question by
Gizmoi · Sep 04, 2014 at 08:58 AM ·
editorroundingfloating point
Floating Point Inaccuracies in Editor
I am aware of floating point inaccuracies in general, and I know that the values I am talking about will never be exact; however, I am fed up of being unable to quickly glance at a transform and know what position it is at because the displayed value is "2.4796e-05" rather than "0".
I tried to write an editor script that found all values that were not rounded to 3dp and round them, which worked except due to the inaccuracies Unity still displayed it differently.
I want to know if there is anyway to force Unity to display numbers rounded to a some number of decimal places. Or some similar solution.
Comment