gwynne Fri Jun 15 01:27:33 2007 UTC
Modified files:
/phpdoc/en/language operators.xml
Log:
Clarify return type of division operator. Fixes bug #39703.
http://cvs.php.net/viewvc.cgi/phpdoc/en/language/operators.xml?r1=1.113&r2=1.114&diff_format=u
Index: phpdoc/en/language/operators.xml
diff -u phpdoc/en/language/operators.xml:1.113
phpdoc/en/language/operators.xml:1.114
--- phpdoc/en/language/operators.xml:1.113 Mon Apr 30 17:02:28 2007
+++ phpdoc/en/language/operators.xml Fri Jun 15 01:27:33 2007
@@ -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 @@
</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 @@
<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">