Home
last modified time | relevance | path

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

/PHP-8.0/ext/standard/tests/math/
H A Dround_modes.phpt6 var_dump (round (2.5, 0, PHP_ROUND_HALF_DOWN));
10 var_dump (round (-2.5, 0, PHP_ROUND_HALF_DOWN));
14 var_dump (round (3.5, 0, PHP_ROUND_HALF_DOWN));
18 var_dump (round (-3.5, 0, PHP_ROUND_HALF_DOWN));
/PHP-8.0/ext/standard/
H A Dphp_math.h104 #ifndef PHP_ROUND_HALF_DOWN
105 #define PHP_ROUND_HALF_DOWN 0x02 /* Down == towards zero */ macro
H A Dmath.c101 if ((mode == PHP_ROUND_HALF_DOWN && value == (-0.5 + tmp_value)) || in php_round_helper()
109 if ((mode == PHP_ROUND_HALF_DOWN && value == (0.5 + tmp_value)) || in php_round_helper()
H A Dbasic_functions.c334 REGISTER_LONG_CONSTANT("PHP_ROUND_HALF_DOWN", PHP_ROUND_HALF_DOWN, CONST_CS | CONST_PERSISTENT); in PHP_MINIT_FUNCTION()

Completed in 14 milliseconds