Skip to content

Instantly share code, notes, and snippets.

@fastjack
Created April 27, 2010 10:26
Show Gist options
  • Save fastjack/380597 to your computer and use it in GitHub Desktop.
Save fastjack/380597 to your computer and use it in GitHub Desktop.
>> 255.to_s(base=16)
=> "ff"
>> "c000".to_i(base=16)
=> 49152
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment