mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Clarify return type of division operator. Fixes bug #39703.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@237714 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
00f143b8c8
commit
460fc9bed4
1 changed files with 4 additions and 14 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.113 $ -->
|
||||
<!-- $Revision: 1.114 $ -->
|
||||
<chapter id="language.operators">
|
||||
<title>Operators</title>
|
||||
<simpara>
|
||||
|
@ -289,9 +289,9 @@ $a = $b += 3; // $a = ($b += 3) -> $a = 5, $b = 5
|
|||
</tgroup>
|
||||
</table>
|
||||
<simpara>
|
||||
The division operator ("/") returns a float value anytime,
|
||||
even if the two operands are integers (or strings that get
|
||||
converted to integers).
|
||||
The division operator ("/") returns a float value unless the two operands
|
||||
are integers (or strings that get converted to integers) and the numbers
|
||||
are evenly divisible, in which case an integer value will be returned.
|
||||
</simpara>
|
||||
<note>
|
||||
<simpara>
|
||||
|
@ -304,16 +304,6 @@ $a = $b += 3; // $a = ($b += 3) -> $a = 5, $b = 5
|
|||
<link linkend="ref.math">Math functions</link>.
|
||||
</simpara>
|
||||
|
||||
<!--
|
||||
<simpara>
|
||||
The division operator ("/") returns an integer value (the result
|
||||
of an integer division) if the two operands are integers (or
|
||||
strings that get converted to integers) and the quotient is an
|
||||
integer. If either operand is a floating-point value, or the
|
||||
operation results in a non-integer value, a floating-point value
|
||||
is returned.
|
||||
</simpara>
|
||||
-->
|
||||
</sect1>
|
||||
|
||||
<sect1 id="language.operators.assignment">
|
||||
|
|
Loading…
Reference in a new issue