vrana Thu Aug 16 13:30:51 2007 UTC
Modified files: /phpdoc/en/language operators.xml Log: Modulus uses integers (bug #41802) http://cvs.php.net/viewvc.cgi/phpdoc/en/language/operators.xml?r1=1.115&r2=1.116&diff_format=u Index: phpdoc/en/language/operators.xml diff -u phpdoc/en/language/operators.xml:1.115 phpdoc/en/language/operators.xml:1.116 --- phpdoc/en/language/operators.xml:1.115 Wed Jun 20 22:24:12 2007 +++ phpdoc/en/language/operators.xml Thu Aug 16 13:30:51 2007 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.115 $ --> +<!-- $Revision: 1.116 $ --> <chapter xml:id="language.operators" xmlns="http://docbook.org/ns/docbook"> <title>Operators</title> <simpara> @@ -293,6 +293,10 @@ 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> + <simpara> + Operands of modulus are converted to integers (by stripping the decimal + part) before processing. + </simpara> <note> <simpara> Remainder <literal>$a % $b</literal> is negative for negative