svn: /phpdoc/en/trunk/language/ operators.xml

From: Date: Sat, 06 Mar 2010 13:20:17 +0000
Subject: svn: /phpdoc/en/trunk/language/ operators.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-6176@lists.php.net to get a copy of this message
degeberg Sat, 06 Mar 2010 13:20:17 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=295889 Log: Fixed PHP bug #51218 (add red warning about floats on comparision operator page) Bug: http://bugs.php.net/51218 (Open) add red warning about floats on comparision operator page Changed paths: U phpdoc/en/trunk/language/operators.xml Modified: phpdoc/en/trunk/language/operators.xml =================================================================== --- phpdoc/en/trunk/language/operators.xml 2010-03-06 08:58:58 UTC (rev 295888) +++ phpdoc/en/trunk/language/operators.xml 2010-03-06 13:20:17 UTC (rev 295889) @@ -1224,6 +1224,19 @@ <link linkend="language.types">Types</link>. </para> + <warning> + <title>Comparison of floating point numbers</title> + + <para> + Because of the way <type>float</type>s are represented internally, you + should not test two <type>float</type>s for equality. + </para> + + <para> + See the documentation for <type>float</type> for more information. + </para> + </warning> + <sect2 xml:id="language.operators.comparison.ternary"> <title>Ternary Operator</title> <para>

« previous php.doc.cvs (#6176) next »