Skip to content

Instantly share code, notes, and snippets.

@JRJurman
Created May 12, 2013 21:18
Show Gist options
  • Select an option

  • Save JRJurman/5564957 to your computer and use it in GitHub Desktop.

Select an option

Save JRJurman/5564957 to your computer and use it in GitHub Desktop.
Multiplication without multiplier operator
def mult(a, b)
(a.to_s(b)+"0").to_i(b)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment