Created
May 12, 2013 21:18
-
-
Save JRJurman/5564957 to your computer and use it in GitHub Desktop.
Multiplication without multiplier operator
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
| 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