I would like to convert this: "#FFFFFF" to this: 0xFFFFFF. How is it possible without using eval?
Thanks in advance,
Join Stack Overflow to learn, share knowledge, and build your career.
|
I would like to convert this: Thanks in advance, |
|||||||||||||
|
|
Strip off the "#" and use
Then, if you want to see it in hex, you can use
|
|||||||||||||||||||||
|