Hi Vivek,
Do you mean you require the generalized Decimal-to-binary code - meaning real numbers included - in that case :|
void printBinary( unsigned long num, bool firstTime )
{
if( num == 0 )
{
if( firstTime == true )
printf("0\n");
return;
}
[EMAIL PROTECTED] wrote:
> iota from the C stlib.h
How is iota going to help him? I'm guessing you had a typo for itoa,
but even that that is just converting his decimal number to a char*.
To convert decimal to binary you divide the number by two and print the
remainder. However, this will be
iota from the C stlib.h
/ and Stacks
On 12/2/05, vive <[EMAIL PROTECTED]> wrote:
hi i have to do followingdecimal to binary conversioncan antone help me please