You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you try to validate if the number 400.01 is a multiple of 0.01, you get an error that is not expected.
I have bcmath installed and thus Helper::isMultipleOf is going that way in my setup. Logging shows me that 400.01 is internally handled as 400.00999999999999 and 0.01 is 0.01000000000000, therefore the comparison is between 0 and 0.00999999999999.
I am unsure how to fix this, otherwise, I would have opened a pull request.
Thx upfront for any help :)
The text was updated successfully, but these errors were encountered:
If you try to validate if the number 400.01 is a multiple of 0.01, you get an error that is not expected.
I have bcmath installed and thus Helper::isMultipleOf is going that way in my setup. Logging shows me that 400.01 is internally handled as 400.00999999999999 and 0.01 is 0.01000000000000, therefore the comparison is between 0 and 0.00999999999999.
I am unsure how to fix this, otherwise, I would have opened a pull request.
Thx upfront for any help :)
The text was updated successfully, but these errors were encountered: