Skip to content

Instantly share code, notes, and snippets.

@MaffooBristol
Created February 20, 2014 09:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MaffooBristol/9109575 to your computer and use it in GitHub Desktop.
Save MaffooBristol/9109575 to your computer and use it in GitHub Desktop.
@nums =
0: "ноль"
1: "один"
2: "два"
3: "три"
4: "четыре"
5: "пять"
6: "шест"
7: "сём"
8: "восем"
9: "девять"
10: "десять"
@teen = "надцат"
for x in [11..19]
@nums[x] = unless x is 14 then @nums[x-10] + @teen else @nums[14].slice(0, -1) + @teen
@decimals =
20: "двадцать"
30: "тридцать"
40: "сорок"
50: "пятьдесят"
60: "шестьдесят"
70: "семьдесят"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment