# Editor units accuracy

**URL:** <https://forums.unrealengine.com/t/editor-units-accuracy/284502>\
**Category:** Mobile\
**Tags:** units, unreal-engine, editor, question\
**Created:** [May 29, 2014, 10:31am UTC](https://forums.unrealengine.com/t/editor-units-accuracy/284502 "2014-05-29T10:31:57Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fungy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Fungy](https://forums.unrealengine.com/u/Fungy)\
**Post date:** [May 29, 2014, 10:31am UTC](https://forums.unrealengine.com/t/editor-units-accuracy/284502/1 "2014-05-29T10:31:57Z")

</div>

Everytime I use the exact numeric values for rotating or scaling an object the editor changes it a bit. If I type 10 it ends up like 9.1314941… Does it matter or I should not pay attention to it?

Thanks.

---

<div class="post-metadata">

**Author:** ![NickDarnell](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NickDarnell](https://forums.unrealengine.com/u/NickDarnell)\
**Post date:** [May 29, 2014, 3:22pm UTC](https://forums.unrealengine.com/t/editor-units-accuracy/284502/2 "2014-05-29T15:22:59Z")

</div>

Hmm, where is that happening, just in the level editor? The number should only be different than what you enter if the number can’t be represented as a floating point number due to numerical imprecision, which that much of a change definitely is not.

Cheers,  
Nick

---

<div class="post-metadata">

**Author:** ![gmpreussner\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@gmpreussner\_1](https://forums.unrealengine.com/u/gmpreussner_1)\
**Post date:** [May 29, 2014, 3:37pm UTC](https://forums.unrealengine.com/t/editor-units-accuracy/284502/3 "2014-05-29T15:37:44Z")

</div>

Fungy, I am unable to reproduce this. Can you provide exact repro steps?

---

<div class="post-metadata">

**Author:** ![NickDarnell](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NickDarnell](https://forums.unrealengine.com/u/NickDarnell)\
**Post date:** [May 29, 2014, 3:38pm UTC](https://forums.unrealengine.com/t/editor-units-accuracy/284502/4 "2014-05-29T15:38:08Z")

</div>

For rotation, I wouldn’t worry about it. What the editor is doing when you enter a new value is it’s creating a new delta quaternion rotation and applying that, and then it extracts the euler angles and sets those to the rotation value we save and you see. That’s likely what you’re seeing, due to the way quaternion math works, the euler values may not look at all like what you had before after the new rotation is applied, but it should still represent the same rotation.

We’ve got some squishy plans that might improve the user experience in the future, like storing the user entered rotation. Out of curiosity what numbers did you have for the rotation?

For scale though those values should remain the same, unless you have the scale locked, which then it effects the other values, scaling them up by the same ratio.

---

<div class="post-metadata">

**Author:** ![Fungy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Fungy](https://forums.unrealengine.com/u/Fungy)\
**Post date:** [May 29, 2014, 6:45pm UTC](https://forums.unrealengine.com/t/editor-units-accuracy/284502/5 "2014-05-29T18:45:52Z")

</div>

Yes, this happens only in the level editor to me. After quick tests it turns out this happens only with rotation values, the scale and move is ok.

This happens with numbers: 3,9,10,11,14,15,16,17,18,19,20… almost with every number.

I just want to be sure this is normally and doesn’t affect the light system or anything else.

Anyway, here how this looks (sorry for a big picture):

 ![7324-ue4editor+2014-05-29+21-42-13-80.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/d/8/cd8985d0b01085b898d79c2aa141ceeceff09c8e.jpeg)

---

<div class="post-metadata">

**Author:** ![Fungy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Fungy](https://forums.unrealengine.com/u/Fungy)\
**Post date:** [May 29, 2014, 6:54pm UTC](https://forums.unrealengine.com/t/editor-units-accuracy/284502/6 "2014-05-29T18:54:52Z")

</div>

Well, I posted a screenshot above and here’s repro steps:

1. Add a static mesh on the level
2. In the Transform section enter a rotation value, for example 3,9,10,20,40
3. After I press “Enter” the resultin value is not what exactly what I typed (10 is 9.99999 or 50 is 49.999996)

---

<div class="post-metadata">

**Author:** ![newbprofi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@newbprofi](https://forums.unrealengine.com/u/newbprofi)\
**Post date:** [May 29, 2014, 7:52pm UTC](https://forums.unrealengine.com/t/editor-units-accuracy/284502/7 "2014-05-29T19:52:33Z")

</div>

had same problem: [[REQUEST] Gui float values snapping/precision - Feedback for Unreal Engine team - Unreal Engine Forums](https://forums.unrealengine.com/showthread.php?3429-REQUEST-Gui-float-values-snapping-precision)

---

<div class="post-metadata">

**Author:** ![gmpreussner\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@gmpreussner\_1](https://forums.unrealengine.com/u/gmpreussner_1)\
**Post date:** [May 29, 2014, 8:36pm UTC](https://forums.unrealengine.com/t/editor-units-accuracy/284502/8 "2014-05-29T20:36:12Z")

</div>

I was able to repro. The difference you’re seeing are floating point rounding errors that occur when converting your input value to a quaternion and back. We are already aware of this problem and planning to adjust this part of the code so that the transformation data is stored in a way that does not alter the user’s input.

For all practical purposes, the difference should not cause any problems, although it may trigger some OCD reflexes in some 🙂

---

<div class="post-metadata">

**Author:** ![EvilReFlex](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@EvilReFlex](https://forums.unrealengine.com/u/EvilReFlex)\
**Post date:** [January 11, 2019, 12:14pm UTC](https://forums.unrealengine.com/t/editor-units-accuracy/284502/9 "2019-01-11T12:14:05Z")

</div>

Still have the problem in 2019 with UE 4.21

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_7e71bf5c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_7e71bf5c](https://forums.unrealengine.com/u/anonymous_user_7e71bf5c)\
**Post date:** [February 4, 2019, 1:16pm UTC](https://forums.unrealengine.com/t/editor-units-accuracy/284502/10 "2019-02-04T13:16:14Z")

</div>

I think I am also facing this issue. Did you get any proper solution?

---

<div class="post-metadata">

**Author:** ![michael.burke001](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@michael.burke001](https://forums.unrealengine.com/u/michael.burke001)\
**Post date:** [August 15, 2019, 10:40pm UTC](https://forums.unrealengine.com/t/editor-units-accuracy/284502/11 "2019-08-15T22:40:58Z")

</div>

Hey, this is still an issue on UE 4.22.3 I try to scale an object from feet to cm by setting the scale to 30.48, and the value comes out at 30.4799995.

I opened UE 4.19 and this is not an issue.

Thanks
