Waseem I. Waseem I. - 21 days ago 51
Javascript Question

Convert to string nodejs

0xc4115 0x4cf8


Im not sure what data type this is so my question would be:

What data type is this and how can I convert it to something more manageable using NODE.JS?

Answer

you can convert Hexadecimal to Decimal by this

let hex_num = "0xc4115";
console.log(Number(hex_num)); #803093