[algogeeks] Re: decimal to binary conversion

2005-12-16 Thread Mayur
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;     }

[algogeeks] Re: decimal to binary conversion

2005-12-14 Thread [EMAIL PROTECTED]
[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

[algogeeks] Re: decimal to binary conversion

2005-12-13 Thread [EMAIL PROTECTED]
iota from the C stlib.h

[algogeeks] Re: decimal to binary conversion

2005-12-02 Thread Roberto Abreu
 / and Stacks On 12/2/05, vive <[EMAIL PROTECTED]> wrote: hi i have to do followingdecimal to binary conversioncan antone help me please