Batasi dua php desimal

return number_format((float)$number, 2, '.', '');
Nice Nightingale