# Getting very small non-zero numbers with polygon rotation

**URL:** <https://discourse.mapeditor.org/t/getting-very-small-non-zero-numbers-with-polygon-rotation/1092>\
**Category:** Uncategorized\
**Created:** [February 2, 2016, 8:28pm UTC](https://discourse.mapeditor.org/t/getting-very-small-non-zero-numbers-with-polygon-rotation/1092 "2016-02-02T20:28:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Seanba](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/seanba/32/1531_2.png) [@Seanba](https://discourse.mapeditor.org/u/Seanba)\
**Post date:** [February 2, 2016, 8:28pm UTC](https://discourse.mapeditor.org/t/getting-very-small-non-zero-numbers-with-polygon-rotation/1092/1 "2016-02-02T20:28:18Z")

</div>

Hi Bjorn, if one rotates a polygon by 90 degrees in the Collision Editor it is common to end up with numbers that are _almost_ zero for the x and/or y position.

Something like this …

```
<object id="0" x="32" y="-9.80119e-16" rotation="90">
 <polygon points="0,0 32,0 32,8 8,8 8,32 0,32"/>
</object>

```

I can handle epsilon errors like that but still thought you’d like to know.

---

<div class="post-metadata">

**Author:** ![bjorn](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/bjorn/32/1599_2.png) [@bjorn](https://discourse.mapeditor.org/u/bjorn)\
**Post date:** [February 2, 2016, 9:03pm UTC](https://discourse.mapeditor.org/t/getting-very-small-non-zero-numbers-with-polygon-rotation/1092/2 "2016-02-02T21:03:40Z")

</div>

Hmm, the rotation generally happens around the center of the polygon, so this depends a lot on what kind of polygon you’re rotating right? Can you should some images that demonstrate the situation?

Also I guess any floating point number parser will generally deal with this fine. It just seems a little verbose, but who am I to decide at which level of precision these numbers should be printed?
