I am running into troubles when I want to convert integer
values to float
(numbers with dots).
$a = 7200;
$b = $a/3600;
echo $b; // 2
$b = floatval($b);
echo $b; // 2
But it should echo 2.0
or 2.00
I also tried settype, without success. And I am finding only help/solutions/questions for "float to int".