# How to convert integer value coming from modbus to float value

**URL:** <https://discourse.nodered.org/t/how-to-convert-integer-value-coming-from-modbus-to-float-value/68273>\
**Category:** General\
**Created:** [27 September 2022 06:49 UTC](https://discourse.nodered.org/t/how-to-convert-integer-value-coming-from-modbus-to-float-value/68273 "2022-09-27T06:49:43Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [29 September 2022 06:04 UTC](https://discourse.nodered.org/t/how-to-convert-integer-value-coming-from-modbus-to-float-value/68273/10 "2022-09-29T06:04:57Z")

</div>

1. Instead of using msg.payload you should be using msg.payload.item1
2. To format the number on the dashboard use angular pipes [How to limit temp display on dashboard to 2 decimals - #3 by Steve-Mcl](https://discourse.nodered.org/t/how-to-limit-temp-display-on-dashboard-to-2-decimals/45622/3)

---

_[View the full topic](https://discourse.nodered.org/t/how-to-convert-integer-value-coming-from-modbus-to-float-value/68273)._
