Home
last modified time | relevance | path

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

/php-src/ext/standard/tests/math/
H A Dround_gh12143_optimize_round.phpt22 var_dump(round(1.70000000000025, 13, PHP_ROUND_HALF_EVEN));
23 var_dump(round(-1.70000000000025, 13, PHP_ROUND_HALF_EVEN));
24 var_dump(round(1.70000000000075, 13, PHP_ROUND_HALF_EVEN));
25 var_dump(round(-1.70000000000075, 13, PHP_ROUND_HALF_EVEN));
26 var_dump(round(12345678901234.5, 0, PHP_ROUND_HALF_EVEN));
27 var_dump(round(-12345678901234.5, 0, PHP_ROUND_HALF_EVEN));
28 var_dump(round(1.500000000000001, 0, PHP_ROUND_HALF_EVEN));
29 var_dump(round(-1.500000000000001, 0, PHP_ROUND_HALF_EVEN));
H A Dround_gh12143_1.phpt12 'PHP_ROUND_HALF_EVEN',
22 PHP_ROUND_HALF_EVEN : +0.49999999999999994 -> +0
26 PHP_ROUND_HALF_EVEN : -0.49999999999999994 -> -0
H A Dround_gh12143_2.phpt12 'PHP_ROUND_HALF_EVEN',
22 PHP_ROUND_HALF_EVEN : +0.50000000000000011 -> +1
26 PHP_ROUND_HALF_EVEN : -0.50000000000000011 -> -1
H A Dround_gh12143_3.phpt12 'PHP_ROUND_HALF_EVEN',
22 PHP_ROUND_HALF_EVEN : +0.5 -> +0
26 PHP_ROUND_HALF_EVEN : -0.5 -> -0
H A Dround_gh12143_4.phpt12 'PHP_ROUND_HALF_EVEN',
22 PHP_ROUND_HALF_EVEN : +1.5 -> +2
26 PHP_ROUND_HALF_EVEN : -1.5 -> -2
H A Dround_modes.phpt8 "PHP_ROUND_HALF_EVEN" => PHP_ROUND_HALF_EVEN,
256 mode: PHP_ROUND_HALF_EVEN
H A Dround_modes_zeros.phpt8 "PHP_ROUND_HALF_EVEN" => PHP_ROUND_HALF_EVEN,
82 mode: PHP_ROUND_HALF_EVEN
H A Dround_gh12143_expand_rounding_target.phpt25 'PHP_ROUND_HALF_EVEN' => [
100 ========== PHP_ROUND_HALF_EVEN ==========
/php-src/ext/standard/
H A Dphp_math_round_mode.h29 #ifndef PHP_ROUND_HALF_EVEN
30 #define PHP_ROUND_HALF_EVEN 0x03 /* Banker's rounding */ macro
H A Dmath.c124 case PHP_ROUND_HALF_EVEN: in php_round_helper()
318 return PHP_ROUND_HALF_EVEN; in php_math_round_mode_from_enum()
364 case PHP_ROUND_HALF_EVEN: in PHP_FUNCTION()
H A Dbasic_functions.stub.php372 const PHP_ROUND_HALF_EVEN = UNKNOWN; define
H A Dbasic_functions_arginfo.h3580 REGISTER_LONG_CONSTANT("PHP_ROUND_HALF_EVEN", PHP_ROUND_HALF_EVEN, CONST_PERSISTENT); in register_basic_functions_symbols()
/php-src/ext/bcmath/libbcmath/src/
H A Dround.c84 case PHP_ROUND_HALF_EVEN: in bc_round()
144 case PHP_ROUND_HALF_EVEN: in bc_round()
/php-src/ext/bcmath/
H A Dbcmath.c788 case PHP_ROUND_HALF_EVEN: in PHP_FUNCTION()
1787 case PHP_ROUND_HALF_EVEN: in PHP_METHOD()

Completed in 42 milliseconds