d
Amit DhamuSoftware Engineer
 

Specify Decimal Places

1 minute read 00000 views
$file_size = 44.73046875;

// Round to 2 decimal places which returns 44.73
$file_size = number_format($file_size, 2, '.', '');