Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
.env export-ignore
.gitattributes export-ignore
.gitignore export-ignore
.license export-ignore
phpcs.xml export-ignore
phpstan.neon export-ignore
phpunit.xml.dist export-ignore
Expand Down
4 changes: 3 additions & 1 deletion docs/reference/upgrading.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ See the [exception table](./api#exceptions).
| --- | --- | --- |
| `Decimal::create('23.74')->toInt()` | `23` | `RoundingNecessaryException` |
| `Decimal::create('23.00')->toInt()` | `23` | `23` |
| `Decimal::create('23.74')->toInt(Decimal::ROUND_DOWN)` | not available | `23` |
| `Decimal::create('23.74')->toInt(Decimal::ROUND_DOWN)` | `23` | `23` |

1.4 ignores the argument, so calls can be changed before the upgrade.

`toFloat()` returns the nearest float for any value in the float range. It used to throw for values with long fractions.

Expand Down
Loading