$number = 153.78999 $rounded_value = round($number,2); $rounded_value will be 153.792*yerine 3 yazarsan istediğin olacaktır