$num = 5;
$num = number_format($num, 2);
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
echo round(5366.8122270742, 2); //5366.81
$number = 1234545454;
echo $english_format_number = number_format($number, 2);