numbers - PHP round() 0.50 to lower value -


Can you round in any way with at least any number .50 with .50?

For example:

  goals (1.4 9) => 1 round (1.51) = & gt; 2 rounds (1.50) = & gt; 2  

Is there any way to make:

  goals (1.49) => 1 round (1.51) = & gt; 2 rounds (1.50) = & gt; Use  PHP_ROUND_HALF_DOWN  

echo round (1.4 9, 0, PHP_ROUND_HALF_DOWN); PHP_EOL echo; Echo round (1.50, 0, php_ROUND_HALF_DOWN); PHP_EOL echo; Echo round (1.51, 0, PHP_ROUND_HALF_DOWN);

Comments