- var_dump: documentation ( source)
<?php
$a = '0.1';
$b = '0.2';
$c = bcadd($a, $b, 1);
$three = (float)bcmul($c, '10');
var_dump($three);
var_dump($three > 3.0);
var_dump($three == 3.0);
echo PHP_EOL;
$a = 0.1;
$b = 0.2;
$c = $a + $b;
$three = $c * 10;
var_dump($three);
var_dump($three > 3.0);
var_dump($three == 3.0);