Fixed PHP bug #51218 (add red warning about floats on comparision operator page)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@295889 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Daniel Egeberg 2010-03-06 13:20:17 +00:00
parent 568d68b95a
commit 7b77d861a6

View file

@ -1224,6 +1224,19 @@ function standard_array_compare($op1, $op2)
<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>