# Buffer-parser help

**URL:** <https://discourse.nodered.org/t/buffer-parser-help/75138>\
**Category:** General\
**Tags:** function-node\
**Created:** [13 February 2023 23:02 UTC](https://discourse.nodered.org/t/buffer-parser-help/75138 "2023-02-13T23:02:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sagatho10](https://avatars.discourse-cdn.com/v4/letter/s/7993a0/32.png) [@Sagatho10](https://discourse.nodered.org/u/Sagatho10)\
**Post date:** [13 February 2023 23:02 UTC](https://discourse.nodered.org/t/buffer-parser-help/75138/1 "2023-02-13T23:02:17Z")

</div>

Hello im trying to use the node Buffer-parser and work great, but i need to reduce the number of decimal in the output, for example i got a 2.123456789 from a modbus float, but i only whant show 2.12 or 2.1234 in the node red dashboard, can someone have experience using this node??

the buffer parser get the information from a modbus tcp slave, and i bring this information to a dashboard.

regards.

---

<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:** [13 February 2023 23:29 UTC](https://discourse.nodered.org/t/buffer-parser-help/75138/2 "2023-02-13T23:29:41Z")

</div>

Leave the numbers alone & use AngularJS number filters / pipes

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [14 February 2023 06:43 UTC](https://discourse.nodered.org/t/buffer-parser-help/75138/3 "2023-02-14T06:43:01Z")

</div>

To clarify you can use angular js filters in the dashboard to format numbers, dates, currency etc.  
e.g.  
`{{msg.payload | number : 2}}`

> **[AngularJS](https://docs.angularjs.org/api/ng/filter/number)**
>
> AngularJS is what HTML would have been, had it been designed for building web-apps.
> Declarative templates with data-binding, MVC, dependency injection and great
> testability story all implemented with pure client-side...

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [15 April 2023 06:43 UTC](https://discourse.nodered.org/t/buffer-parser-help/75138/4 "2023-04-15T06:43:18Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
