# Convert number to hex

**URL:** <https://discourse.nodered.org/t/convert-number-to-hex/45837>\
**Category:** General\
**Created:** [18 May 2021 12:19 UTC](https://discourse.nodered.org/t/convert-number-to-hex/45837 "2021-05-18T12:19:25Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![DerD74](https://avatars.discourse-cdn.com/v4/letter/d/d07c76/32.png) [@DerD74](https://discourse.nodered.org/u/DerD74)\
**Post date:** [18 May 2021 12:19 UTC](https://discourse.nodered.org/t/convert-number-to-hex/45837/1 "2021-05-18T12:19:25Z")

</div>

Dear all,

I wont connect STONE Panel via Serial Bus. Therfore I must convert Value from PLC to hex.  
Following I post what I tested, but in debug node the converted value will not shown.  
Perhaps someone have a Idea?

 ![grafik](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/2/52a233a8d6d77f31af011c47b7f67aa89ba296d8.png)

Thx  
Denis

---

<div class="post-metadata">

**Author:** ![Simon01011](https://avatars.discourse-cdn.com/v4/letter/s/e68b1a/32.png) [@Simon01011](https://discourse.nodered.org/u/Simon01011)\
**Post date:** [18 May 2021 12:25 UTC](https://discourse.nodered.org/t/convert-number-to-hex/45837/2 "2021-05-18T12:25:41Z")

</div>

Typo in line 10, missing "y"?

---

<div class="post-metadata">

**Author:** ![DerD74](https://avatars.discourse-cdn.com/v4/letter/d/d07c76/32.png) [@DerD74](https://discourse.nodered.org/u/DerD74)\
**Post date:** [18 May 2021 12:28 UTC](https://discourse.nodered.org/t/convert-number-to-hex/45837/3 "2021-05-18T12:28:40Z")

</div>

![grafik](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/c/0c1f8c538f20626b923d639d30ef2c79ff4e9dc4.png)  
okay thx , now the output from msg8 is only "( object Object)"

---

<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:** [18 May 2021 12:32 UTC](https://discourse.nodered.org/t/convert-number-to-hex/45837/4 "2021-05-18T12:32:49Z")

</div>

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/8/480c83b8cdfe9be33c5d848d5a0348a85fe0af2b.png)

In future, please paste code instead of screenshots (we can edit and correct code for you but not when it is a screenshot)

---

<div class="post-metadata">

**Author:** ![DerD74](https://avatars.discourse-cdn.com/v4/letter/d/d07c76/32.png) [@DerD74](https://discourse.nodered.org/u/DerD74)\
**Post date:** [18 May 2021 12:50 UTC](https://discourse.nodered.org/t/convert-number-to-hex/45837/5 "2021-05-18T12:50:27Z")

</div>

sorry I'am new here, I will get better in the future.  
It works fine now.  
Thx for fast help ;o)

---

<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:** [1 June 2021 12:50 UTC](https://discourse.nodered.org/t/convert-number-to-hex/45837/6 "2021-06-01T12:50:45Z")

</div>

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