Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parsing string #188

Open
OiTAvO opened this issue Aug 11, 2022 · 1 comment · Fixed by #192
Open

Parsing string #188

OiTAvO opened this issue Aug 11, 2022 · 1 comment · Fixed by #192

Comments

@OiTAvO
Copy link

OiTAvO commented Aug 11, 2022

If "5.0e3" is an invalid string, shouldn't it return :error?

iex(1)> Money.parse("5.0e3") 

{:ok, %Money{amount: 503, currency: :BRL}}

or

If "5.0e3" is a valid string, shouldn't the return be: {:ok, %Money{amount: 500000, currency: :BRL}}

@Nitrino
Copy link
Member

Nitrino commented Nov 22, 2022

I reopened this issue because this feature was moved to v2.0 due to breaking changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants