Interconversion between decimal and any other base-n number system

Posted by Webbisshh on Stack Overflow See other posts from Stack Overflow or by Webbisshh
Published on 2010-03-28T06:40:28Z Indexed on 2010/03/28 6:43 UTC
Read the original article Hit count: 316

Filed under:
|
|
|

Hello there, I have written some general functions to convert between decimal and any other base-n number system(n<=36 for now) and vice-versa. Don't want to make things messy here so i have posted the code here.

Could anybody suggest any better way for this? May be more effective and Rubyish?

Thanks

© Stack Overflow or respective owner

Related posts about ruby

Related posts about number-systems