View Source NumberF (Number Functions v0.1.0)

Documentation for NumberF.

Summary

Functions

Link to this function

comma_separated(number, precision \\ 2)

View Source
Link to this function

currency(number, unit \\ "ZMW", precision \\ 2)

View Source

Hello world.

Examples

iex> NumberF.currency()
:world

Convert a number into words:

Example

iex> NumberF.to_words(20.0)
Link to this function

number_to_delimited(number, options \\ [])

View Source
Link to this function

randomizer(length, type \\ :all)

View Source

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 Source

Convert a number into words:

Example

iex> NumberF.to_words(20.0)