The number_format function in PHP seems to round by default. My understanding is that this function is useful for separating every three numbers with a comma. Lik
number_format
$a=12042.529; echo number_format($a,2,'.',',');