From e35bdb49121ac451384b6c443850ce67e7c5be63 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Wed, 2 Oct 2019 15:06:09 +0200 Subject: 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. --- UPGRADING | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'UPGRADING') 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 ======================================== -- cgit v1.2.1