cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
I want to return a hexadecimal
I want to return a hexadecimal
Sep 13, 2016 at 8:46pm UTC
alop125125
(2)
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.
Sep 13, 2016 at 9:24pm UTC
Peter87
(11175)
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.