PhpRiot
Follow phpriot on Twitter
Sponsored Link

Listing 2676

Followup to listing-2675.txt, submitted by terra.

Submitted by terra, 5 February 2010
<?php
//How come this happens?
echo (-4095.1) + (-1.0) + (4095.1) + (1.0); // -4.5474735088646E-13
echo (-4096.1) + (-1.0) + (4096.1) + (1.0); // 0

//What's so magic with 4096 in this case?
?>
Submit a Follow Up