# `Bookk.Utils`
[🔗](https://github.com/rwillians/bookk/blob/v1.0.0/lib/bookk/utils.ex#L1)

Utility functions.

# `to_decimal`

```elixir
@spec to_decimal(value) :: Decimal.t() when value: Decimal.t() | integer() | float()
```

Casts the given value into a `Decimal`. It raises `ArgumentError` if
the given value is of an unsupported type.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
