Created
June 30, 2011 22:37
-
-
Save rubydubee/1057466 to your computer and use it in GitHub Desktop.
Rubyish BaseConverter
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#To find the equivalent of 582 in base-14 NS do this : | |
582.to_s(14) #will return "2d8" | |
#and vice versa | |
"2d8".to_i(14) #will return 582 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment