# Something is rounding my float values in sitemap

**URL:** <https://community.openhab.org/t/something-is-rounding-my-float-values-in-sitemap/13704>\
**Category:** Items & Sitemaps\
**Created:** [August 30, 2016, 8:57pm UTC](https://community.openhab.org/t/something-is-rounding-my-float-values-in-sitemap/13704 "2016-08-30T20:57:12Z")\
**Posts on this page:** 1\
**Showing post:** 39

<div class="post-metadata">

**Author:** ![fohdeesha](https://community.openhab.org/user_avatar/community.openhab.org/fohdeesha/32/13449_2.png) [@fohdeesha](https://community.openhab.org/u/fohdeesha)\
**Post date:** [September 8, 2016, 9:48am UTC](https://community.openhab.org/t/something-is-rounding-my-float-values-in-sitemap/13704/39 "2016-09-08T09:48:47Z")

</div>

That’s the wiki article I’ve used during setup, I’ve probably read it top to bottom 10 times (or so I thought). Reading it again I see almost verbatim the sentence I suggested above, so it seems I’m blind!

“If you get strange values using the int32, uint32 or float32 valuetypes then just try the int32\_swap, uint32\_swap or float32\_swap valuetype, depending upon what your data type is.”

Has that always been there!?!? I swear, I’m not always this stupid. Like you said, simple errors - if it were just swapped bytes or wrong endian-ness on their own, I would have figured it out in a couple seconds, but when they combined I went down a rabbit hole thinking I was nuts. It doesn’t help that reading a float value with the wrong endian and a register error of +1, it gets the MSB and gives you a value that looks like it’s basically correct. Lucky me 🙂

---

_[View the full topic](https://community.openhab.org/t/something-is-rounding-my-float-values-in-sitemap/13704)._
