-
Notifications
You must be signed in to change notification settings - Fork 443
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
Money::stringToUnits(".99") returns 9900, not 99 #64
Comments
I agree, it should fail or work. Looking into it. |
mathiasverraes
added a commit
that referenced
this issue
Oct 7, 2014
mathiasverraes
added a commit
that referenced
this issue
Oct 7, 2014
mathiasverraes
added a commit
that referenced
this issue
Oct 7, 2014
Fixed in #65, merged to master and to nextrelease |
spezifanta
pushed a commit
to reservix/money
that referenced
this issue
Apr 16, 2015
spezifanta
pushed a commit
to reservix/money
that referenced
this issue
Apr 16, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I was going through the motions on 'what would a user do' as far as input goes that might trip up the ::stringToUnits() function.
Tested on
nextrelease
andmaster
, callingMoney::stringToUnits(".99")
results in a value of9900
.Personally I'd expect
99
back, maybe even an exception, but it just silently converts to9900
.Thought it was worth mentioning even if you decide it's not a problem... thanks for the work on this!
The text was updated successfully, but these errors were encountered: