# Problem in converting decimal to ascii

**URL:** https://discourse.nodered.org/t/problem-in-converting-decimal-to-ascii/70823
**Category:** General
**Created:** [18 November 2022 10:50 UTC](https://discourse.nodered.org/t/problem-in-converting-decimal-to-ascii/70823 "2022-11-18T10:50:26Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Alxender](https://avatars.discourse-cdn.com/v4/letter/a/ac91a4/32.png) [@Alxender](https://discourse.nodered.org/u/Alxender)
#### Post date: [18 November 2022 10:50 UTC](https://discourse.nodered.org/t/problem-in-converting-decimal-to-ascii/70823/1 "2022-11-18T10:50:26Z")

</div>

I have problem in converting decimal to ascii. Can anyone glad to help me.?

---

<div class="post-metadata">

### Author: ![knoepsche](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knoepsche/32/69450_2.png) [@knoepsche](https://discourse.nodered.org/u/knoepsche)
#### Post date: [18 November 2022 11:35 UTC](https://discourse.nodered.org/t/problem-in-converting-decimal-to-ascii/70823/2 "2022-11-18T11:35:17Z")

</div>

In a function node you may convert it by javascript:

[https://www.codegrepper.com/code-examples/javascript/convert+number+to+ascii+javascript](https://www.codegrepper.com/code-examples/javascript/convert+number+to+ascii+javascript)

---

<div class="post-metadata">

### Author: ![gemini86](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gemini86/32/70967_2.png) [@gemini86](https://discourse.nodered.org/u/gemini86)
#### Post date: [18 November 2022 13:32 UTC](https://discourse.nodered.org/t/problem-in-converting-decimal-to-ascii/70823/3 "2022-11-18T13:32:17Z")

</div>

You can also use JSONATA in a change node. Set msg.payload to a JSONATA expression

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/9/7936102cd5e5c36bff0f6aaef5997685f964b597.png)

the `$string()` expression works well for this;  
[https://try.jsonata.org/8L0S61x9m](https://try.jsonata.org/8L0S61x9m)

---

<div class="post-metadata">

### Author: ![drmibell](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/drmibell/32/8424_2.png) [@drmibell](https://discourse.nodered.org/u/drmibell)
#### Post date: [18 November 2022 22:22 UTC](https://discourse.nodered.org/t/problem-in-converting-decimal-to-ascii/70823/4 "2022-11-18T22:22:12Z")

</div>

> [@Alxender](#):
>
> I have problem in converting decimal to ascii.

This description is ambiguous. I can think of at least two interpretations, and you have gotten an answer to each. Please mark one as the solution, or clarify your issue.

---

<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: [17 January 2023 22:22 UTC](https://discourse.nodered.org/t/problem-in-converting-decimal-to-ascii/70823/5 "2023-01-17T22:22:50Z")

</div>

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