diff options
| author | Nikita Popov <nikita.ppv@gmail.com> | 2019-10-02 15:06:09 +0200 |
|---|---|---|
| committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-10-11 16:36:11 +0200 |
| commit | e35bdb49121ac451384b6c443850ce67e7c5be63 (patch) | |
| tree | ccffaba90a7f4e325afc0e272681ce3e77228792 /UPGRADING | |
| parent | 28ed73d94a7c5e08221cf13048a6bdde603fc234 (diff) | |
| download | php-git-e35bdb49121ac451384b6c443850ce67e7c5be63.tar.gz | |
Add fdiv() function
The fdiv() function is part of the fmod() / intdiv() family. It
implements a floating-point division with IEEE-754 semantics.
That is, division by zero is considered well-defined and does not
trigger any kind of diagnostic. Instead one of INF, -INF or NAN
will be returned, depending on the case.
This is in preparation for throwing DivisionByZeroError from the
standard division operator.
Diffstat (limited to 'UPGRADING')
| -rw-r--r-- | UPGRADING | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -318,6 +318,11 @@ PHP 8.0 UPGRADE NOTES 6. New Functions ======================================== +- Standard: + . Added fdiv() method, which performs a floating-point devision under + IEEE 754 semantics. Division by zero is considered well-defined and + will return one of Inf, -Inf or NaN. + ======================================== 7. New Classes and Interfaces ======================================== |
