Skip to content

Conversation

@chav170
Copy link
Collaborator

@chav170 chav170 commented May 7, 2025

Make multiply, divide and mod backward compatible with float values

In v4.0.1, the first parameter from these functions changed from string to int|string,
making float values lose the decimals due to auto typecast to int.

https://github.com/moneyphp/money/blob/v4.0.0/src/Money.php#L240
https://github.com/moneyphp/money/blob/v4.0.1/src/Money.php#L241

@steinkel steinkel merged commit 152666e into 2.next-cake5 May 7, 2025
20 checks passed
@steinkel steinkel deleted the hotfix/fix-float-values branch May 7, 2025 17:04
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.

3 participants