View Source NumberF (Number Functions v0.1.0)
Documentation for NumberF
.
Summary
Functions
Hello world.
Convert a number into words
Generate random string based on the given legth. It is also possible to generate certain type of randomise string using the options below
Convert a number into words
Functions
Hello world.
Examples
iex> NumberF.currency()
:world
Convert a number into words:
Example
iex> NumberF.to_words(20.0)
Generate random string based on the given legth. It is also possible to generate certain type of randomise string using the options below:
- :all - generate alphanumeric random string
- :alpha - generate nom-numeric random string
- :numeric - generate numeric random string
- :upcase - generate upper case non-numeric random string
- :downcase - generate lower case non-numeric random string
Example
iex> NumberF.randomizer(20) //"Je5QaLj982f0Meb0ZBSK"
Link to this function
to_words(amount, main_currence \\ "Kwacha", sec_current \\ "Ngwee")
View SourceConvert a number into words:
Example
iex> NumberF.to_words(20.0)