Skip to main content
September 9, 2024
Solved

Is Shape Data converting strings that look like hex values to decimal?

  • September 9, 2024
  • 1 reply
  • 27 views

In a shape data field that I’m using for text values, when I enter “0B1” as part of a sequence I’m constructing, the field converts it to “1”. This may be a unique scenario and I’m not going to spend time testing other hex values, but is anyone else aware of this? I’m also using an Edge browser and I don’t know if it might be doing this thinking it is “fixing” my input.

Best answer by Kelsey Gaag

Hi @rhett prft

Thank you for posting in the community! It appears that the code is converting ‘0B1’ into 1 because it is reading as a binary number. If you would like to workaround this behavior, I would recommend changing this combination by either inserting a period or replacing the zero with the letter O. This would prevent the code from converting the number to binary. 

Hope this helps!

Comments

Kelsey Gaag
Lucidite
September 10, 2024

Hi @rhett prft

Thank you for posting in the community! It appears that the code is converting ‘0B1’ into 1 because it is reading as a binary number. If you would like to workaround this behavior, I would recommend changing this combination by either inserting a period or replacing the zero with the letter O. This would prevent the code from converting the number to binary. 

Hope this helps!