# Convert Ascii to Decimal

**URL:** <https://discourse.nodered.org/t/convert-ascii-to-decimal/46090>\
**Category:** General\
**Created:** [22 May 2021 13:46 UTC](https://discourse.nodered.org/t/convert-ascii-to-decimal/46090 "2021-05-22T13:46:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![DeSnor](https://avatars.discourse-cdn.com/v4/letter/d/58956e/32.png) [@DeSnor](https://discourse.nodered.org/u/DeSnor)\
**Post date:** [22 May 2021 13:46 UTC](https://discourse.nodered.org/t/convert-ascii-to-decimal/46090/1 "2021-05-22T13:46:15Z")

</div>

Hello,

I need to convert Ascii data coming from a burst of data.  
this is coming from the COM port.

0021002#dC#�k0.0 I get  
online converted to  
4 48 1 1 48 4 50 49 48 48 48 35 100 16 3 239 191 189 239 191 189 16 1 239 191 189 16 16 1 4 107 2 48 46 48 10 10

how can this be done in the Fx function?

regards

Tom

---

<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:** [22 May 2021 13:55 UTC](https://discourse.nodered.org/t/convert-ascii-to-decimal/46090/2 "2021-05-22T13:55:02Z")

</div>

Why don't you just change the comport to return a buffer instead of ASCII?

---

<div class="post-metadata">

**Author:** ![DeSnor](https://avatars.discourse-cdn.com/v4/letter/d/58956e/32.png) [@DeSnor](https://discourse.nodered.org/u/DeSnor)\
**Post date:** [22 May 2021 16:10 UTC](https://discourse.nodered.org/t/convert-ascii-to-decimal/46090/3 "2021-05-22T16:10:40Z")

</div>

Hello Steve,

Thx I did this before and this gave no difference.  
I did this again and BINGO there is the string.

thank you,

---

<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:** [21 July 2021 16:11 UTC](https://discourse.nodered.org/t/convert-ascii-to-decimal/46090/4 "2021-07-21T16:11:07Z")

</div>

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