PhpRiot

Listing 2675

Submitted by terra, 5 February 2010
//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

Followups:


listing-2676.txt by terra
5 February 2010