# MoneyEX
A library for work with money in elixir.
- Convert floats, strings or integers in to integer representation of a number with decimals.
## Installation
The package can be installed by adding `moneyex` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[{:moneyex, "~> 0.1.0"}]
end
```
## Config
By default the scale is two, you can override this in the config:
```elixir
config :money,
scale: 4
```
## How to use
Convert **floats**, **integers**, or **strings** of a number in to an integer representation of a decimal:
```elixir
Money.convert_to_integer("10.23") == 1023
```
For more information read the [doc](https://hexdocs.pm/moneyex)