Location: PHPKode > projects > phc > test/subjects/codegen/real_representation.php
<?php

	// For this, I generally searched for examples of floats people had problems with.

	var_dump (0.1);
	var_dump (0.98);
	var_dump (0.98 * 4.56);

	var_dump (10.1 + 10.1 +10.1 +10.1 +10.1 +10.1 +10.1 +10.1 +10.1 +10.1 +10.1 +10.1 +10.1);

	var_dump (0.000000010, 0.000010000, 100000000.0, 300000000.0);

	var_dump (1/5);
	var_dump (1/3);
	var_dump (1/10);

	var_dump (5 - 3/4);
	var_dump (2 - 7/8);
	var_dump (5 - 3/4);
	var_dump (63/64);

	var_dump (1.2349999);
	var_dump (1.2350001);
	var_dump (1.2350000);
?>
Return current item: phc