Hexadecimals data types

I am trying to use Jasonata in the node red but $number(arg) does not work propelly. I read out hex data from string and join them into one word value. It works at try.jasonata but in the node red it can't cast the value.Is there any simple method to convert data types? Iam looking how to pick up bit from byte or word.
Thx for any help

Try.jsonata is at the latest 2x. node red is still using the previous 1.8, and wont be updated til node-red v4 i believe.
You should be able to use parseInteger()

$parseInteger("0x12", "16" )	

returns 18

1 Like

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