note 118704 deleted from function.round by cmb

From: Date: Wed, 27 Jan 2016 11:17:23 +0000
Subject: note 118704 deleted from function.round by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-204780@lists.php.net to get a copy of this message
Note Submitter: Slavik Meltser ---- Can somebody explain me, why it behaves like this? <?php $a = (0.1 + 0.2) * 10; echo $a; // Output: "3" echo round($a); // Output: "3" echo round($a)==$a ? "true" : "false"; // Output: "false" // WHAT?! ?>

« previous php.notes (#204780) next »