Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
07/02/04 07:43
Read: times


 
#73493 - Remainder
1. Can anyone tell me why this does not work
for(loop = 0;loop<=5;loop++)
{
Value[loop] = counter % 10;// work out remainder
counter1 = counter / 10;

and this does.?

Value[0] = counter % 10;
counter1 /= 10;
Value[1] = counter % 10;
counter /= 10;
.
.
.
Value[9] = counter % 10;

2. How do i calc the fraction of counter.?
I have tryed to x100L and then do the above
but my value is always 0




List of 4 messages in thread
TopicAuthorDate
Remainder            01/01/70 00:00      
   RE: Remainder            01/01/70 00:00      
   RE: Remainder            01/01/70 00:00      
      RE: Remainder            01/01/70 00:00      

Back to Subject List