Can Anyone suggest me a simpler algorithm for converting any base number to base 10??
Welcome to the Java Programming Forums
The professional, friendly Java community. 21,500 members and growing!
The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.
>> REGISTER NOW TO START POSTING
Members have full access to the forums. Advertisements are removed for registered users.
Can Anyone suggest me a simpler algorithm for converting any base number to base 10??
USING ITERATION PLZ!!!
Simpler than what?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
Last edited by helloworld922; November 13th, 2010 at 04:47 PM.