Thread: Binary numbers
View Single Post
Re: Binary numbers
Old
  (#9)
koraX
Member
 
koraX's Avatar
 
Status: Offline
Posts: 145
Join Date: Jan 2004
Location: Slovak Republic
Default Re: Binary numbers - 02-04-2004

I just want to add that if you want to display number in binary format, you can't do it with printf.
But you can do it with itoa
http://www.cplusplus.com/ref/cstdlib/itoa.html

also AFAIK you can't specify binary number (like 00101b) I think only 1234, 0x0033 and 07654 works (deciman, hex and octal)
IMO it's not in ANSI C/C++
http://www.cs.colorado.edu/~eliuser/c_html/c.html
http://www.comnets.rwth-aachen.de/do.../contents.html


kXBot
koraX's utils
- see my homepage for other projects (OpenGL CSG Editor, FAT16 Sim, NNetwork Sim, ...)

Last edited by koraX; 02-04-2004 at 21:51..
  
Reply With Quote