StrictlySpeaking.En.say
You're seeing just the function
say
, go back to StrictlySpeaking.En module for more information.
Link to this function
say(number, acc \\ <<>>, order \\ 0)
Accepts an integer. Returns a string containing human-readable representation of given number.
Examples
iex> StrictlySpeaking.En.say(7)
"seven"
iex> StrictlySpeaking.En.say(17)
"seventeen"
iex> StrictlySpeaking.En.say(23)
"twenty three"
iex> StrictlySpeaking.En.say(117)
"one hundred and seventeen"
iex> StrictlySpeaking.En.say(200)
"two hundred"
iex> StrictlySpeaking.En.say(217)
"two hundred and seventeen"
iex> StrictlySpeaking.En.say(227)
"two hundred and twenty seven"
iex> StrictlySpeaking.En.say(1_007)
"one thousand seven"
iex> StrictlySpeaking.En.say(1_017)
"one thousand seventeen"
iex> StrictlySpeaking.En.say(1_117)
"one thousand one hundred and seventeen"
iex> StrictlySpeaking.En.say(1_227)
"one thousand two hundred and twenty seven"
iex> StrictlySpeaking.En.say(17_117)
"seventeen thousand one hundred and seventeen"
iex> StrictlySpeaking.En.say(117_117)
"one hundred and seventeen thousand one hundred and seventeen"
iex> StrictlySpeaking.En.say(117_227)
"one hundred and seventeen thousand two hundred and twenty seven"