From 7b77d861a6952bdcd6dd4dc572ef1af43066b8bd Mon Sep 17 00:00:00 2001 From: Daniel Egeberg Date: Sat, 6 Mar 2010 13:20:17 +0000 Subject: [PATCH] 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 --- language/operators.xml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/language/operators.xml b/language/operators.xml index 3ab90bd394..a62bac5f2a 100644 --- a/language/operators.xml +++ b/language/operators.xml @@ -1224,6 +1224,19 @@ function standard_array_compare($op1, $op2) Types. + + Comparison of floating point numbers + + + Because of the way floats are represented internally, you + should not test two floats for equality. + + + + See the documentation for float for more information. + + + Ternary Operator