[ create a new paste ] login | about

Link: http://codepad.org/FHqCrZOG    [ raw code | output | fork ]

PHP, pasted on Apr 24:
1
2
3
4
5
6
7
8
9
10
<?php

$a = 0.1;
$b = 0.7;

echo (($a + $b) * 10);
echo "\n";
echo (int) (($a + $b) * 10);

?>


Output:
1
2
8
7


Create a new paste based on this one


Comments: