the format specifier for sprintf
Posted on 2001-08-27
I'm using sprintf(string,"%x",number) on a string to be displayed by a CStatic control.
where number is an int
can i display it in binary format? I don't find any binary specifier in the help ( i remember in Turbo C i have a %b specifier---something like that)
i mean i want to display a 2 as 10 in binary format, but not hexadecimal, octal or anythig else