Skip to content

Instantly share code, notes, and snippets.

@giruzou
Created December 15, 2018 10:32
Show Gist options
  • Save giruzou/bec61c172e47a2ea8d79c09322545751 to your computer and use it in GitHub Desktop.
Save giruzou/bec61c172e47a2ea8d79c09322545751 to your computer and use it in GitHub Desktop.
Ruby10進数を2進数に変化 ref: https://qiita.com/DrqYuto/items/0a6faa029e9359c7cc4d
puts gets.to_i.to_s(2)
=begin
7
111
=end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment