# How to limit temp display on dashboard to 2 decimals

**URL:** <https://discourse.nodered.org/t/how-to-limit-temp-display-on-dashboard-to-2-decimals/45622>\
**Category:** General\
**Created:** [14 May 2021 01:15 UTC](https://discourse.nodered.org/t/how-to-limit-temp-display-on-dashboard-to-2-decimals/45622 "2021-05-14T01:15:05Z")\
**Posts on this page:** 1\
**Showing post:** 3

<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:** [14 May 2021 06:45 UTC](https://discourse.nodered.org/t/how-to-limit-temp-display-on-dashboard-to-2-decimals/45622/3 "2021-05-14T06:45:00Z")

</div>

> [@007bond](#):
>
> This works good to do the conversion but shows to many decimal places at times.  
> var o = msg.payload  
> msg.payload = msg.payload /10 \* 9 / 5.0 + 32  
> return msg

Use your working formula then use [angular decimal pipe](https://angular.io/api/common/DecimalPipe) `{{msg.payload|number:2}}` to limit the display on a dashboard item.

---

_[View the full topic](https://discourse.nodered.org/t/how-to-limit-temp-display-on-dashboard-to-2-decimals/45622)._
