I want to convert hexadecimal value (for i.e. "0xff") to a decimal value, how can I do this?
1. Put your hexadecimal-value into a string and then into a variable, like this below:
var a = "0xff" //don't forget the double-quotes
2. then use a function like this:
I usually dealing hexadecimal value with color.
1. Put your hexadecimal-value into a string and then into a variable, like this below:
var a = "0xff" //don't forget the double-quotes
2. then use a function like this:
I usually dealing hexadecimal value with color.
Test
No comments:
Post a Comment