Home
last modified time | relevance | path

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

/php-src/ext/standard/tests/math/
H A Dround_gh12143_optimize_round.phpt13 var_dump(round(1.70000000000015, 13, PHP_ROUND_HALF_DOWN));
14 var_dump(round(-1.70000000000015, 13, PHP_ROUND_HALF_DOWN));
15 var_dump(round(123456789012345.0, -1, PHP_ROUND_HALF_DOWN));
16 var_dump(round(-123456789012345.0, -1, PHP_ROUND_HALF_DOWN));
17 var_dump(round(1.500000000000001, 0, PHP_ROUND_HALF_DOWN));
18 var_dump(round(-1.500000000000001, 0, PHP_ROUND_HALF_DOWN));
H A Dround_gh12143_1.phpt11 'PHP_ROUND_HALF_DOWN',
21 PHP_ROUND_HALF_DOWN : +0.49999999999999994 -> +0
25 PHP_ROUND_HALF_DOWN : -0.49999999999999994 -> -0
H A Dround_gh12143_2.phpt11 'PHP_ROUND_HALF_DOWN',
21 PHP_ROUND_HALF_DOWN : +0.50000000000000011 -> +1
25 PHP_ROUND_HALF_DOWN : -0.50000000000000011 -> -1
H A Dround_gh12143_3.phpt11 'PHP_ROUND_HALF_DOWN',
21 PHP_ROUND_HALF_DOWN : +0.5 -> +0
25 PHP_ROUND_HALF_DOWN : -0.5 -> -0
H A Dround_gh12143_4.phpt11 'PHP_ROUND_HALF_DOWN',
21 PHP_ROUND_HALF_DOWN : +1.5 -> +1
25 PHP_ROUND_HALF_DOWN : -1.5 -> -1
H A Dround_modes.phpt7 "PHP_ROUND_HALF_DOWN" => PHP_ROUND_HALF_DOWN,
155 mode: PHP_ROUND_HALF_DOWN
H A Dround_modes_zeros.phpt7 "PHP_ROUND_HALF_DOWN" => PHP_ROUND_HALF_DOWN,
57 mode: PHP_ROUND_HALF_DOWN
H A Dround_gh12143_expand_rounding_target.phpt17 'PHP_ROUND_HALF_DOWN' => [
92 ========== PHP_ROUND_HALF_DOWN ==========
/php-src/ext/standard/
H A Dphp_math_round_mode.h25 #ifndef PHP_ROUND_HALF_DOWN
26 #define PHP_ROUND_HALF_DOWN 0x02 /* Arithmetic rounding, down == towards zero */ macro
H A Dmath.c89 case PHP_ROUND_HALF_DOWN: in php_round_helper()
316 return PHP_ROUND_HALF_DOWN; in php_math_round_mode_from_enum()
363 case PHP_ROUND_HALF_DOWN: in PHP_FUNCTION()
H A Dbasic_functions.stub.php367 const PHP_ROUND_HALF_DOWN = UNKNOWN; define
H A Dbasic_functions_arginfo.h3579 REGISTER_LONG_CONSTANT("PHP_ROUND_HALF_DOWN", PHP_ROUND_HALF_DOWN, CONST_PERSISTENT); in register_basic_functions_symbols()
/php-src/ext/bcmath/libbcmath/src/
H A Dround.c83 case PHP_ROUND_HALF_DOWN: in bc_round()
138 case PHP_ROUND_HALF_DOWN: in bc_round()
/php-src/ext/bcmath/
H A Dbcmath.c787 case PHP_ROUND_HALF_DOWN: in PHP_FUNCTION()
1786 case PHP_ROUND_HALF_DOWN: in PHP_METHOD()

Completed in 41 milliseconds