I have an customer invoice table in my MySQL database with a DECIMAL(10,2) field called price.
When fetching these values in php and calculating a sum amount,
You could use number_format
number_format
Ex:(for two decimal points)
$number = 12345.5667; echo $result = number_format($number, 2);
Or you could use round function in MySql:
round
ROUND(number,2)