Batasi dua php desimal
return number_format((float)$number, 2, '.', '');
Nice Nightingale
return number_format((float)$number, 2, '.', '');