Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

display as hex

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
How do i display a decimal number as a hexadecimal number??? like how do show the hexadecimal equivalent of a decimal number?? Any help would be great!!!! Thanks!

Ben
 
I am not sure about any iostream routines for that, but you may use very well
Code:
 int value = 100;
printf("Hex value: %X\n",value);

This should do it...
[red]Nosferatu[/red]
We are what we eat...
There's no such thing as free meal...
once stated: methane@personal.ro
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top