04-19-2023, 09:02 PM
Hi, I have this javascript that should work.
However, the output does not result in HEX numbers.
var inputValue = 1224277079131226000.0 the
var hex = inputValue.toString(16).toUpperCase();
var hexsliced = hex.slice(0,-4);
result = '{"tag":"outputTag", "value":"'+ hexsliced + '"}';
I expect the output to be "10FD81845845"
Currently it results "1224277079131226"
Can youplease help me out further?
However, the output does not result in HEX numbers.
var inputValue = 1224277079131226000.0 the
var hex = inputValue.toString(16).toUpperCase();
var hexsliced = hex.slice(0,-4);
result = '{"tag":"outputTag", "value":"'+ hexsliced + '"}';
I expect the output to be "10FD81845845"
Currently it results "1224277079131226"
Can youplease help me out further?