2 chiffres apres virgule php code example Example: 2 chiffres apres virgule php round($number, 2); //ex: round(2.234, 2) => 2.23