Commit bf312d3
committed
Fix precision loss when rounding large integers in
Add type check in `round()` method to bypass rounding for integer values,
preventing precision loss for large integers that are still below PHP_INT_MAX.
🤖 Generated with [Claude Code](https://claude.ai/code)NumberToLocalizedStringTransformer
1 parent bd60612 commit bf312d3
File tree
2 files changed
+33
-0
lines changed- src/Symfony/Component/Form
- Extension/Core/DataTransformer
- Tests/Extension/Core/DataTransformer
2 files changed
+33
-0
lines changedLines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
192 | 196 | | |
193 | 197 | | |
194 | 198 | | |
| |||
Lines changed: 29 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
726 | 726 | | |
727 | 727 | | |
728 | 728 | | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
729 | 758 | | |
0 commit comments