I am facing the below issue with my php code.
$value = 28.835223;
$newValue = floor($value);
When I echo $newValue
, it will show 28
.
But when I use $newValue
for a new calculation, the value is 28.835223
.
How can I use the new floor value "28" in my calculations?