mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
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:
parent
568d68b95a
commit
7b77d861a6
1 changed files with 13 additions and 0 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue