Write number N in base M
- by VaioIsBorn
I know how to do it mathematically, but i want it now to do it in c++ using some easy algorithm. Is is possible?
The question is that i need some methods/ideas for writing a number N in base M, for example 1410 in base 3: (14)10 = 2*(3^0) + 1*(3^1) + 1*(3^2) = (112)3 etc.