rfc:integer-rounding
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
rfc:integer-rounding [2024/03/10 21:00] – why float input will not be casted to int mabe | rfc:integer-rounding [2024/03/18 15:13] – Fix grammar in a couple places theodorejb | ||
---|---|---|---|
Line 3: | Line 3: | ||
* Date: 2023-09-26 | * Date: 2023-09-26 | ||
* Author: Marc Bennewitz, php@mabe.berlin | * Author: Marc Bennewitz, php@mabe.berlin | ||
- | * Status: | + | * Status: |
* First Published at: https:// | * First Published at: https:// | ||
Line 23: | Line 23: | ||
This RFC proposes to perform rounding on given int and return a rounded int value if possible by default. | This RFC proposes to perform rounding on given int and return a rounded int value if possible by default. | ||
- | In case of integer under-/ | + | In case of integer under-/ |
For '' | For '' | ||
Line 34: | Line 34: | ||
An additional argument will be introduced '' | An additional argument will be introduced '' | ||
In PHP 8.next this will default to '' | In PHP 8.next this will default to '' | ||
- | In PHP 9.0 the default will change to '' | + | In PHP 9.0 the default will change to '' |
Line 61: | Line 61: | ||
The '' | The '' | ||
- | As a result PHP will behave more precise | + | As a result PHP will behave more precisely |
Line 196: | Line 196: | ||
===== Unaffected PHP Functionality ===== | ===== Unaffected PHP Functionality ===== | ||
- | Rounding floating point numbers will not be effected | + | Rounding floating point numbers will not be affected |
===== Future Scope ===== | ===== Future Scope ===== | ||
- | After PHP 9 it can be considered to deprecate and remove the `force_float` argument again but due to very long future this is not part of this RFC. | + | After PHP 9 it can be considered to deprecate and remove the '' |
- | ===== Proposed Voting Choices ===== | + | ===== Proposed Voting Choices ===== |
- | One primary | + | As per the voting RFC a yes/ |
+ | Voting started | ||
+ | <doodle title=" | ||
+ | * Yes | ||
+ | * No | ||
+ | </ | ||
===== Patches and Tests ===== | ===== Patches and Tests ===== |
rfc/integer-rounding.txt · Last modified: 2024/04/02 07:07 by mabe