summaryrefslogtreecommitdiff
path: root/ext/standard/php_math.h
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 /ext/standard/php_math.h
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 'ext/standard/php_math.h')
-rw-r--r--ext/standard/php_math.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/standard/php_math.h b/ext/standard/php_math.h
index 39751a7f89..e85fd120f2 100644
--- a/ext/standard/php_math.h
+++ b/ext/standard/php_math.h
@@ -59,6 +59,7 @@ PHP_FUNCTION(octdec);
PHP_FUNCTION(base_convert);
PHP_FUNCTION(number_format);
PHP_FUNCTION(fmod);
+PHP_FUNCTION(fdiv);
PHP_FUNCTION(deg2rad);
PHP_FUNCTION(rad2deg);
PHP_FUNCTION(intdiv);