svn: /phpdoc/en/trunk/language/types/ float.xml

From: Date: Tue, 31 Jan 2012 20:40:50 +0000
Subject: svn: /phpdoc/en/trunk/language/types/ float.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-9533@lists.php.net to get a copy of this message
frozenfire Tue, 31 Jan 2012 20:40:50 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=322984 Log: Fixed issue with float comparison example. Changed paths: U phpdoc/en/trunk/language/types/float.xml Modified: phpdoc/en/trunk/language/types/float.xml =================================================================== --- phpdoc/en/trunk/language/types/float.xml 2012-01-31 19:53:07 UTC (rev 322983) +++ phpdoc/en/trunk/language/types/float.xml 2012-01-31 20:40:50 UTC (rev 322984) @@ -117,7 +117,7 @@ $b = 1.23456780; $epsilon = 0.00001; -if(abs($a-$b) < 0.00001) { +if(abs($a-$b) < $epsilon) { echo "true"; } ?>

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