PHP Parse Float 2 décimales
$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, '.', '');