Created
January 6, 2012 00:02
-
-
Save havenwood/1568086 to your computer and use it in GitHub Desktop.
Germans Got Commas and Periods Confused
This file contains 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 scrub character | |
results.delete("#{character}").to_i | |
end | |
case results[-3] | |
when "." | |
scrub "," | |
when "," | |
scrub "." | |
else | |
scrub ".," | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment