04-20-2023, 12:43 AM
(This post was last modified: 04-20-2023, 12:44 AM by iliaslamprou.)
Hi,
The input value is too big.
the "toString(16)" is not working for values with more than 16 digits.
you can use the "slice" before the conversion to hex.
check the code below. The result is not correct but I hope to help you
The input value is too big.
the "toString(16)" is not working for values with more than 16 digits.
you can use the "slice" before the conversion to hex.
check the code below. The result is not correct but I hope to help you
Code:
var inputValue = +1224277079131226000.0;
var inputsliced = inputValue.toString().slice(0,-4);
var n= +inputsliced;
var hex=n.toString(16).toUpperCase();
res = '{"tag":"outputTag", "value":"'+ hex+ '"}';