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

fix: Fix a potential rounding error #296

Merged
merged 3 commits into from
Mar 28, 2024

Conversation

a-solaris
Copy link
Contributor

Description

There's a potential rounding error when multiplying floating point numbers. This PR covers three cases where the gateway would perform a potentially unsafe multiplication and replaces them with a call to bcmul. bcmul is part of the bcmath extension that is required by Craft 4.x.

@a-solaris a-solaris requested a review from a team as a code owner March 28, 2024 08:17
Copy link
Contributor

@nfourtythree nfourtythree left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this @a-solaris ! We will get this merged in and a release out asap.

@nfourtythree nfourtythree merged commit c19b378 into craftcms:v4 Mar 28, 2024
5 checks passed
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 this pull request may close these issues.

None yet

2 participants