# How to add a decimal point?

**URL:** <https://discourse.nodered.org/t/how-to-add-a-decimal-point/78088>\
**Category:** General\
**Tags:** function-node\
**Created:** [2 May 2023 03:01 UTC](https://discourse.nodered.org/t/how-to-add-a-decimal-point/78088 "2023-05-02T03:01:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kelvin](https://avatars.discourse-cdn.com/v4/letter/k/7ba0ec/32.png) [@kelvin](https://discourse.nodered.org/u/kelvin)\
**Post date:** [2 May 2023 03:01 UTC](https://discourse.nodered.org/t/how-to-add-a-decimal-point/78088/1 "2023-05-02T03:01:56Z")

</div>

Hi,

1st my data is from analog input, and now i need to add a decimal point after 7.  
for example now i getting 7296.406, i wanted my output will be 7.29 some thing like that

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/9/19c0e074c5b99e810b6c3f92434deaecf5cb9e51.png)

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/d/dd250b03a7baa6429db2fea8f2816d17896e03b4.png)

---

<div class="post-metadata">

**Author:** ![ralphwetzel](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ralphwetzel/32/53713_2.png) [@ralphwetzel](https://discourse.nodered.org/u/ralphwetzel)\
**Post date:** [2 May 2023 06:25 UTC](https://discourse.nodered.org/t/how-to-add-a-decimal-point/78088/2 "2023-05-02T06:25:24Z")

</div>

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/c/2cee76121a0d1fc58ef8cdb35b67b320c647b919.png)

---

<div class="post-metadata">

**Author:** ![kelvin](https://avatars.discourse-cdn.com/v4/letter/k/7ba0ec/32.png) [@kelvin](https://discourse.nodered.org/u/kelvin)\
**Post date:** [2 May 2023 06:48 UTC](https://discourse.nodered.org/t/how-to-add-a-decimal-point/78088/4 "2023-05-02T06:48:01Z")

</div>

Hi @ralphwetzel thanks for the helping i get the output alr 😇

---

<div class="post-metadata">

**Author:** ![ralphwetzel](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ralphwetzel/32/53713_2.png) [@ralphwetzel](https://discourse.nodered.org/u/ralphwetzel)\
**Post date:** [2 May 2023 06:50 UTC](https://discourse.nodered.org/t/how-to-add-a-decimal-point/78088/5 "2023-05-02T06:50:31Z")

</div>

> [@kelvin](#):
>
> ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/9/19c0e074c5b99e810b6c3f92434deaecf5cb9e51.png)
> 
> image361×743 6.01 KB

In that case, the debug pane picture you posted does not reflect the data you try to act on.  
Looks like you're dealing with strings rather than numbers...

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/2/020daf115ce1ff4985ca985c79c7b81c1fa60f2a.png)

Additional hint: If you hit the `...` - button, you'll be shown a lot more functions to act on data by `Jsonata`.

---

<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:** [16 May 2023 06:51 UTC](https://discourse.nodered.org/t/how-to-add-a-decimal-point/78088/6 "2023-05-16T06:51:20Z")

</div>

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