-
Notifications
You must be signed in to change notification settings - Fork 444
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
Careful with string vs int #133
Comments
Is this a good idea with the PhpCalculator |
Good question, let's test it. |
Added another commit to the PR. The |
So calculators return strings and integers based on what? |
Calculators return an integer in the |
Fixed in #136. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Now that there are no more integer limitations (#115), we have to be careful with
int
andstring
usage vs strict comparison. This is something that I did not cover in my PR but now realize that should be taken care of. Especially with these lines.These lines are now buggy, because the following will return false.
I guess we should convert the amount to a string in the constructor with
(string)
. PR is on the way.The text was updated successfully, but these errors were encountered: