svn: /phpdoc/en/trunk/appendices/ comparisons.xml

From: Date: Thu, 26 May 2011 22:59:40 +0000
Subject: svn: /phpdoc/en/trunk/appendices/ comparisons.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-8183@lists.php.net to get a copy of this message
dtajchreber Thu, 26 May 2011 22:59:40 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=311459 Log: Patch by Matthew Turland (elazar) - note about comparing NAN with itself Changed paths: U phpdoc/en/trunk/appendices/comparisons.xml Modified: phpdoc/en/trunk/appendices/comparisons.xml =================================================================== --- phpdoc/en/trunk/appendices/comparisons.xml 2011-05-26 22:32:14 UTC (rev 311458) +++ phpdoc/en/trunk/appendices/comparisons.xml 2011-05-26 22:59:40 UTC (rev 311459) @@ -34,6 +34,17 @@ <function>isset</function> and/or initialize your variables. </para> </note> + <note> + <para> + Some numeric operations can result in a value represented by the constant + <constant>NAN</constant>. Any loose or strict comparisons of this value + against any other value, including itself, will have a result of &false;. + (i.e. <literal>NAN != NAN</literal> and <literal>NAN !== NAN</literal>) + Examples of operations that produce <constant>NAN</constant> include + <literal>sqrt(-1)</literal>, <literal>asin(2)</literal>, and + <literal>asinh(0)</literal>. + </para> + </note> <para> <table> <title>Comparisons of <varname>$x</varname> with PHP functions</title>

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