--TEST-- GH-12143: Test rounding of 0.5. --FILE-- %+.17g\n", $mode, $number, round($number, 0, constant($mode))); } } ?> --EXPECT-- PHP_ROUND_HALF_UP : +0.5 -> +1 PHP_ROUND_HALF_DOWN : +0.5 -> +0 PHP_ROUND_HALF_EVEN : +0.5 -> +0 PHP_ROUND_HALF_ODD : +0.5 -> +1 PHP_ROUND_HALF_UP : -0.5 -> -1 PHP_ROUND_HALF_DOWN : -0.5 -> -0 PHP_ROUND_HALF_EVEN : -0.5 -> -0 PHP_ROUND_HALF_ODD : -0.5 -> -1