I'm using C++11. Is there a function that gets the string of hex and turns it into decimal?
I've tried to find something about unicode()
function that I saw somewhere in StackOverflow, but I couldn't find any information about it.
For example, we have a symbol hex: U+03C0
. How to turn it into dec: 960
?
Let's imagine this:
char* pi_symbol = hexToDec("U+03C0");
cout << "The pi dec is " << pi_symbol << endl;
And get this:
The pi dec is 960