Html

Try searching both the forums and the internet before posting a new question, as you may find it’s been asked and answered before. Oddly enough, your exact question seems to be all over the internet - for example:

http://stackoverflow.com/questions/1337419/how-do-you-convert-numbers-between-different-bases-in-javascript