Can Anyone suggest me a simpler algorithm for converting any base number to base 10??
Printable View
Can Anyone suggest me a simpler algorithm for converting any base number to base 10??
USING ITERATION PLZ!!!
Simpler than what?Quote:
suggest me a simpler algorithm
db
At this point it doesn't matter that it is simpler. I just need an Iterative way to implement any base conversion to a base 10.
Take a pen and paper. Do some base conversion math, placing each step on a separate line. When you're comfortable that you know what steps are needed, write Java code that carries out the same steps.
If and only if you can't get the right results, post your best attempt and we'll take a look.
db
If you are unsure how to comvert numbers by hand, see PlanetMath: base conversion