Home
last modified time | relevance | path

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

/PHP-5.6/ext/standard/tests/math/
H A Dround_modes.phpt8 var_dump (round (2.5, 0, PHP_ROUND_HALF_ODD));
12 var_dump (round (-2.5, 0, PHP_ROUND_HALF_ODD));
16 var_dump (round (3.5, 0, PHP_ROUND_HALF_ODD));
20 var_dump (round (-3.5, 0, PHP_ROUND_HALF_ODD));
/PHP-5.6/ext/standard/
H A Dphp_math.h169 #ifndef PHP_ROUND_HALF_ODD
170 #define PHP_ROUND_HALF_ODD 0x04 macro
H A Dmath.c116 (mode == PHP_ROUND_HALF_ODD && value == (0.5 + 2 * floor(tmp_value/2.0) - 1.0))) in php_round_helper()
124 (mode == PHP_ROUND_HALF_ODD && value == (-0.5 + 2 * ceil(tmp_value/2.0) + 1.0))) in php_round_helper()
H A Dbasic_functions.c3607 REGISTER_LONG_CONSTANT("PHP_ROUND_HALF_ODD", PHP_ROUND_HALF_ODD, CONST_CS | CONST_PERSISTENT); in PHP_MINIT_FUNCTION()

Completed in 25 milliseconds