Skip to content

Instantly share code, notes, and snippets.

@LisaBee224
Created April 12, 2016 03:03
Show Gist options
  • Save LisaBee224/d31f01d167e8c67694d64504296ecc85 to your computer and use it in GitHub Desktop.
Save LisaBee224/d31f01d167e8c67694d64504296ecc85 to your computer and use it in GitHub Desktop.
def convert_to_roman(arabic)
numeral = ""
number = arabic
$letters.each do |key, value|
numerals += value * (number / key)
num -= key * (num/key)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment