I want to return a hexadecimal

I want my function to return a hexadecimal value or is there a way to convert a decimal to hexadecimal and store it in a int.
An int is stored as binary. It does not keep track of what numeral system should be used when you print or convert it to a string. That is something you'll have to keep track of some other way.
Topic archived. No new replies allowed.