Php parse Float 2 десятичных десятичных мест
$num = 5;
$num = number_format($num, 2);
Codelerk
$num = 5;
$num = number_format($num, 2);
return number_format((float)$number, 2, '.', '');
$foo = "105";
echo number_format((float)$foo, 2, '.', '');