How do i convert hex values to their decimal value using nodejs ?
Suppose i have hex value as bellow
9c63e8e2f6574c197c0626bad843eb47104adf3f01f2901aad1258936feb007e
Any one have any idea the please let me know
JS parseInt function takes base as a second argument.
So you can simply use parseInt(hexString, 16)
.
For example: parseInt('ff', 16)
will return 255.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With