View Source Number (number v1.0.4)

Number provides functions to convert numbers into a variety of different formats. Ultimately, it aims to be a partial clone of ActionView::Helpers::NumberHelper from Rails.

If you want to import all of the functions provided by Number, simply use it in your module:

defmodule MyModule do
  use Number

More likely, you'll want to import the functions you want from one of Number's submodules.

defmodule MyModule do
  import Number.Currency



Some of Number's behavior can be configured through Mix. Each submodule contains documentation on how to configure it.

Link to this section Summary

Link to this section Types