Home
last modified time | relevance | path

Searched refs:PHP_ROUND_HALF_EVEN (Results 1 – 4 of 4) sorted by relevance

/PHP-5.6/ext/standard/tests/math/
H A Dround_modes.phpt7 var_dump (round (2.5, 0, PHP_ROUND_HALF_EVEN));
11 var_dump (round (-2.5, 0, PHP_ROUND_HALF_EVEN));
15 var_dump (round (3.5, 0, PHP_ROUND_HALF_EVEN));
19 var_dump (round (-3.5, 0, PHP_ROUND_HALF_EVEN));
/PHP-5.6/ext/standard/
H A Dphp_math.h165 #ifndef PHP_ROUND_HALF_EVEN
166 #define PHP_ROUND_HALF_EVEN 0x03 /* Banker's rounding */ macro
H A Dmath.c115 (mode == PHP_ROUND_HALF_EVEN && value == (0.5 + 2 * floor(tmp_value/2.0))) || in php_round_helper()
123 (mode == PHP_ROUND_HALF_EVEN && value == (-0.5 + 2 * ceil(tmp_value/2.0))) || in php_round_helper()
H A Dbasic_functions.c3606 REGISTER_LONG_CONSTANT("PHP_ROUND_HALF_EVEN", PHP_ROUND_HALF_EVEN, CONST_CS | CONST_PERSISTENT); in PHP_MINIT_FUNCTION()

Completed in 19 milliseconds