say_number v0.0.3 SayNumber
Main module to handle spelling of a number.
Link to this section Summary
Functions
Say number, supply an integer and locale, get the pronounciable words. Currently supported locale
Link to this section Functions
Link to this function
spell(number, locale \\ "en")
Say number, supply an integer and locale, get the pronounciable words. Currently supported locale:
- English (default)
- Indonesian Language (Bahasa Indonesia)
Current number
limit is: 999_999_999_999_999
Returns a string.
Examples
iex> SayNumber.spell(1899)
"One thousand eight hundred ninety nine"
iex> SayNumber.spell(91_000, "id")
"Sembilan puluh satu ribu"