# Present hex value not as string?

**URL:** <https://discourse.nodered.org/t/present-hex-value-not-as-string/47870>\
**Category:** General\
**Created:** [1 July 2021 01:45 UTC](https://discourse.nodered.org/t/present-hex-value-not-as-string/47870 "2021-07-01T01:45:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nodi.Rubrum](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nodi.rubrum/32/107482_2.png) [@Nodi.Rubrum](https://discourse.nodered.org/u/Nodi.Rubrum)\
**Post date:** [1 July 2021 01:45 UTC](https://discourse.nodered.org/t/present-hex-value-not-as-string/47870/1 "2021-07-01T01:45:16Z")

</div>

Is there a way to present a hex value not as string in the UI/debug display? In python you can get hex presentation in a dictionary without quotes, for example:

CPU implementer: 0x41  
CPU architecture: 7

But in the NR UI/debug view you get the following:

CPU implementer: "0x41"  
CPU architecture: 7

Is there a way to get the hex value to not be presented as an explicit string in the NR UI/debug view? I know it is cosmetic, but to my 'python' mindset... looks... goofy. 🙂

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [1 July 2021 05:49 UTC](https://discourse.nodered.org/t/present-hex-value-not-as-string/47870/2 "2021-07-01T05:49:09Z")

</div>

No. In JavaScript there is only a Number type.

In the Debug sidebar you can click on any number and it will cycle between decimal and hex representations, but it will always default to decimal.

---

<div class="post-metadata">

**Author:** ![Nodi.Rubrum](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nodi.rubrum/32/107482_2.png) [@Nodi.Rubrum](https://discourse.nodered.org/u/Nodi.Rubrum)\
**Post date:** [2 July 2021 16:34 UTC](https://discourse.nodered.org/t/present-hex-value-not-as-string/47870/3 "2021-07-02T16:34:23Z")

</div>

Yeah, asked but not surprised by the answer... Python 'color' glasses type of thing... or does that make me a python bigot? LOL!

---

<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 July 2021 16:34 UTC](https://discourse.nodered.org/t/present-hex-value-not-as-string/47870/4 "2021-07-16T16:34:28Z")

</div>

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