summaryrefslogtreecommitdiff
path: root/UPGRADING
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2019-10-02 15:06:09 +0200
committerNikita Popov <nikita.ppv@gmail.com>2019-10-11 16:36:11 +0200
commite35bdb49121ac451384b6c443850ce67e7c5be63 (patch)
treeccffaba90a7f4e325afc0e272681ce3e77228792 /UPGRADING
parent28ed73d94a7c5e08221cf13048a6bdde603fc234 (diff)
downloadphp-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--UPGRADING5
1 files changed, 5 insertions, 0 deletions
diff --git a/UPGRADING b/UPGRADING
index 7d26e22019..7783f92f9b 100644
--- a/UPGRADING
+++ b/UPGRADING
@@ -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
========================================