com php-langspec: Clarify the division point: spec/14-classes.md
[email protected] (Stanislav Malyshev) Fri, 01 Jan 2016 23:49:35 +0000
| Newsgroups | php.standards.cvs |
|---|---|
| Message-ID | <[email protected]> |
Commit: 5154ca3ed053047ab2a6679a31dbda79a985b4d4 Author: Stanislav Malyshev <[email protected]> Fri, 1 Jan 2016 15:49:35 -0800 Parents: e7a6118b500f7615ee6a49b1ff891694ffc5e9a7 Branches: master Link: http://git.php.net/?p=php-langspec.git;a=commitdiff;h=5154ca3ed053047ab2a6679a31dbda79a985b4d4 Log: Clarify the division point Changed paths: M spec/14-classes.md Diff: diff --git a/spec/14-classes.md b/spec/14-classes.md index 7d7328f..7db2c0c 100644 --- a/spec/14-classes.md +++ b/spec/14-classes.md @@ -2066,7 +2066,7 @@ class AssertionError extends Error ####Class `DivisionByZeroError` An instance of this class is thrown when an attempt is made to divide a number by zero, e.g. when using the remainder operators ([`%`](10-expressions.md#multiplicative-operators) and [`%=`](10-expressions.md#compound-assignment)). -Note that this happens only for integer operations, float division produces `float(INF)` and a non-fatal error instead. +Note that this happens only for integer operations, regular float division (`/`) produces a non-fatal error instead. The class type is defined, as follows: ```PHP