Run »
"); echo(round(-1.5,0,PHP_ROUND_HALF_UP) . "
"); echo(round(1.5,0,PHP_ROUND_HALF_DOWN) . "
"); echo(round(-1.5,0,PHP_ROUND_HALF_DOWN) . "
"); echo(round(1.5,0,PHP_ROUND_HALF_EVEN) . "
"); echo(round(-1.5,0,PHP_ROUND_HALF_EVEN) . "
"); echo(round(1.5,0,PHP_ROUND_HALF_ODD) . "
"); echo(round(-1.5,0,PHP_ROUND_HALF_ODD)); ?>
2
-2
1
-1
2
-2
1
-1