Fix an 2 Dezimalstellen PHP
return number_format((float)$number, 2, '.', '');
Nice Nightingale
return number_format((float)$number, 2, '.', '');
echo round(520.34345, 2); // 520.34
echo round(520.3, 2); // 520.3
echo round(520, 2); // 520