Answer :

Convert a number to a hexadecimal string with:

hexString = yourNumber.toString(16);
and reverse the process with:

yourNumber = parseInt(hexString, 16);

If it's not right I'm sorry. I'm pretty sure it's right tho. Hope it helped

Other Questions