# Remove the values after fraction

**URL:** <https://discourse.nodered.org/t/remove-the-values-after-fraction/15108>\
**Category:** General\
**Created:** [4 September 2019 13:32 UTC](https://discourse.nodered.org/t/remove-the-values-after-fraction/15108 "2019-09-04T13:32:44Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [4 September 2019 15:53 UTC](https://discourse.nodered.org/t/remove-the-values-after-fraction/15108/6 "2019-09-04T15:53:48Z")

</div>

This tells you how to do it in a dashboard node, courtesy of Paul Reed.

> [@Problems using '.toFixed()'](https://discourse.nodered.org/t/problems-using-tofixed/4192/14):
>
> If for example, you are displaying the value in a dashboard text node, you can always use angular filters to format the number. Adding {{msg.payload | number:1}} mph to the text node value format box will format a msg.payload from 18.31158 to 18.3 mph

---

_[View the full topic](https://discourse.nodered.org/t/remove-the-values-after-fraction/15108)._
