PHP parse flutuar 2 casas decimais
$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, '.', '');