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