[Solved] Rounding decimal number only last two digit PHP February 13, 2023 by Kirat [ad_1]$input=0.27777777777778; $number = number_format(round($input,1),2); echo $number; Round your number to 0.3, then use number format to show two decimal points.From the PHP manual / docs:Rounding numbers – LinkNumber format – Link 1[ad_2]solved Rounding decimal number only last two digit PHP