Closed jdewar closed 2 years ago
Thanks for the report. I have published ex_money version 5.7.2 with the following changelog entry:
Money.from_integer/3
. Thanks to @jdewar for the report.:fractional_digits
option for Money.from_integer/3
and improve the documentation.
spec for
from_integer
error is a 3-tuple, but the output in the case of an error is a 2-tuple with a 2-tuple in the second slot.spec says:
from_integer(integer(), currency_code(), Keyword.t()) :: t() | {:error, module(), String.t()}
iex says: