How can I convert an in int stored in hex such as
int x = (0x2710); to decimal 2710?
For example, I want to set another variable
x= y, but y would be decimal and equal to 2710.
I have searched the web and this forum and was not able to find guidance ( I only saw examples of conversion where you actually read the hex value as user input and convert one character at a time, where as I am just simply trying to convert a known hex value), so I would appreciate any help.
Thanks