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

Fixed GH-17275: Fixed the calculation logic of dividend scale. #17279

Closed
wants to merge 2 commits into from

Conversation

SakiTakamachi
Copy link
Member

@SakiTakamachi SakiTakamachi commented Dec 27, 2024

fixes #17275

I feel like this part of the code has finally turned into the correct version….

I've tried about 1 million patterns, and so far all the results have been the same as in past versions, so I think the bug has settled down for now.....

@SakiTakamachi SakiTakamachi changed the title Fixed the calculation logic of dividend scale. Fixed GH-17275: Fixed the calculation logic of dividend scale. Dec 27, 2024
@SakiTakamachi SakiTakamachi marked this pull request as ready for review December 27, 2024 04:53
Copy link
Member

@nielsdos nielsdos left a comment

Choose a reason for hiding this comment

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

Looks correct.
The numerator_readable_len >= scale_diff condition could be changed to numerator_readable_len > scale_diff to be similar to other conditions, but it doesn't really matter as the resulting computation will be the same. (You don't have to change this, just noting)

@SakiTakamachi
Copy link
Member Author

@nielsdos
Indeed, I fixed it.
Thanks!

SakiTakamachi added a commit that referenced this pull request Dec 27, 2024
* PHP-8.4:
  Fixed GH-17275: Fixed the calculation logic of dividend scale (#17279)
@SakiTakamachi SakiTakamachi deleted the fix/gh17275 branch December 27, 2024 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants