Skip to content

Instantly share code, notes, and snippets.

@rubydubee
Created June 30, 2011 22:37
Show Gist options
  • Save rubydubee/1057466 to your computer and use it in GitHub Desktop.
Save rubydubee/1057466 to your computer and use it in GitHub Desktop.
Rubyish BaseConverter
#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