View Source KamaroNumber (kamaro_number v0.1.0)
An Elixir package to spell out numbers into Words such as one hundred twenty three point thirty seven.
Link to this section Summary
Functions
Converts number to words
Calculates logarithm of any number in any base. Covers for the missing logarithm function in Erlang/ Elixir
Convert negative number words given number
.
Link to this section Functions
Converts number to words
Returns string
.
examples
Examples
iex> KamaroNumber.convert(34.3)
"thirty-four point three"
Calculates logarithm of any number in any base. Covers for the missing logarithm function in Erlang/ Elixir
Returns float
.
examples
Examples
iex> KamaroNumber.spell_out(34)
"thirty-four"
Convert negative number words given number
.
Returns String
.
examples
Examples
iex> KamaroNumber.spell_out(-29.7)
"negative twenty-nine point seven"