quick programming question

shrink

[H]ard|Gawd
Joined
Jul 28, 2000
Messages
1,238
does anyone know how to decompose a number into powers?

e.g.
123.4 = 1 * 100 + 2*10 + 3*1 + 4*10^-1

using mod?


im stuck here and would really appreciate some guidance
 
I had that problem in my first computer science class too. Try looking in the textbook.
 
Back
Top