1--TEST--
2round() with different rounding modes
3--FILE--
4<?php
5var_dump (round (2.5, 0, PHP_ROUND_HALF_UP));
6var_dump (round (2.5, 0, PHP_ROUND_HALF_DOWN));
7var_dump (round (2.5, 0, PHP_ROUND_HALF_EVEN));
8var_dump (round (2.5, 0, PHP_ROUND_HALF_ODD));
9var_dump (round (-2.5, 0, PHP_ROUND_HALF_UP));
10var_dump (round (-2.5, 0, PHP_ROUND_HALF_DOWN));
11var_dump (round (-2.5, 0, PHP_ROUND_HALF_EVEN));
12var_dump (round (-2.5, 0, PHP_ROUND_HALF_ODD));
13var_dump (round (3.5, 0, PHP_ROUND_HALF_UP));
14var_dump (round (3.5, 0, PHP_ROUND_HALF_DOWN));
15var_dump (round (3.5, 0, PHP_ROUND_HALF_EVEN));
16var_dump (round (3.5, 0, PHP_ROUND_HALF_ODD));
17var_dump (round (-3.5, 0, PHP_ROUND_HALF_UP));
18var_dump (round (-3.5, 0, PHP_ROUND_HALF_DOWN));
19var_dump (round (-3.5, 0, PHP_ROUND_HALF_EVEN));
20var_dump (round (-3.5, 0, PHP_ROUND_HALF_ODD));
21?>
22--EXPECT--
23float(3)
24float(2)
25float(2)
26float(3)
27float(-3)
28float(-2)
29float(-2)
30float(-3)
31float(4)
32float(3)
33float(4)
34float(3)
35float(-4)
36float(-3)
37float(-4)
38float(-3)
39