Searched refs:PHP_ROUND_HALF_UP (Results 1 – 17 of 17) sorted by relevance
/php-src/ext/standard/tests/math/ |
H A D | round_large_exp.phpt | 5 var_dump (2e-22 == round (2e-22, 22, PHP_ROUND_HALF_UP)); 6 var_dump (1e-22 == round (1e-22, 22, PHP_ROUND_HALF_UP)); 7 var_dump (2e-23 == round (2e-23, 23, PHP_ROUND_HALF_UP)); 8 var_dump (1e-23 == round (1e-23, 23, PHP_ROUND_HALF_UP)); 9 var_dump (2e-24 == round (2e-24, 24, PHP_ROUND_HALF_UP)); 10 var_dump (1e-24 == round (1e-24, 24, PHP_ROUND_HALF_UP)); 11 var_dump (2e22 == round (2e22, -22, PHP_ROUND_HALF_UP)); 12 var_dump (1e22 == round (1e22, -22, PHP_ROUND_HALF_UP)); 13 var_dump (2e23 == round (2e23, -23, PHP_ROUND_HALF_UP)); 14 var_dump (1e23 == round (1e23, -23, PHP_ROUND_HALF_UP)); [all …]
|
H A D | round_gh12143_1.phpt | 10 'PHP_ROUND_HALF_UP', 20 PHP_ROUND_HALF_UP : +0.49999999999999994 -> +0 24 PHP_ROUND_HALF_UP : -0.49999999999999994 -> -0
|
H A D | round_gh12143_2.phpt | 10 'PHP_ROUND_HALF_UP', 20 PHP_ROUND_HALF_UP : +0.50000000000000011 -> +1 24 PHP_ROUND_HALF_UP : -0.50000000000000011 -> -1
|
H A D | round_gh12143_3.phpt | 10 'PHP_ROUND_HALF_UP', 20 PHP_ROUND_HALF_UP : +0.5 -> +1 24 PHP_ROUND_HALF_UP : -0.5 -> -1
|
H A D | round_gh12143_4.phpt | 10 'PHP_ROUND_HALF_UP', 20 PHP_ROUND_HALF_UP : +1.5 -> +2 24 PHP_ROUND_HALF_UP : -1.5 -> -2
|
H A D | round_gh12143_optimize_round.phpt | 6 var_dump(round(1.700000000000145, 13, PHP_ROUND_HALF_UP)); 7 var_dump(round(-1.700000000000145, 13, PHP_ROUND_HALF_UP)); 8 var_dump(round(123456789012344.5, -1, PHP_ROUND_HALF_UP)); 9 var_dump(round(-123456789012344.5, -1, PHP_ROUND_HALF_UP));
|
H A D | round_modes.phpt | 6 "PHP_ROUND_HALF_UP" => PHP_ROUND_HALF_UP, 54 mode: PHP_ROUND_HALF_UP
|
H A D | round_modes_zeros.phpt | 6 "PHP_ROUND_HALF_UP" => PHP_ROUND_HALF_UP, 32 mode: PHP_ROUND_HALF_UP
|
H A D | round_gh12143_expand_rounding_target.phpt | 9 'PHP_ROUND_HALF_UP' => [ 84 ========== PHP_ROUND_HALF_UP ==========
|
H A D | round_prerounding.phpt | 7 var_dump (round (0.285, 2, PHP_ROUND_HALF_UP));
|
/php-src/ext/standard/ |
H A D | php_math_round_mode.h | 21 #ifndef PHP_ROUND_HALF_UP 22 #define PHP_ROUND_HALF_UP 0x01 /* Arithmetic rounding, up == away from zero */ macro
|
H A D | math.c | 73 case PHP_ROUND_HALF_UP: in php_round_helper() 314 return PHP_ROUND_HALF_UP; in php_math_round_mode_from_enum() 339 zend_long mode = PHP_ROUND_HALF_UP; in PHP_FUNCTION() 362 case PHP_ROUND_HALF_UP: in PHP_FUNCTION() 1120 d = _php_math_round(d, dec, PHP_ROUND_HALF_UP); in _php_math_number_format_ex()
|
H A D | basic_functions.stub.php | 362 const PHP_ROUND_HALF_UP = UNKNOWN; define
|
H A D | basic_functions_arginfo.h | 3578 REGISTER_LONG_CONSTANT("PHP_ROUND_HALF_UP", PHP_ROUND_HALF_UP, CONST_PERSISTENT); in register_basic_functions_symbols()
|
H A D | array.c | 2868 size = (uint32_t)_php_math_round(__calc_size, 0, PHP_ROUND_HALF_UP); \
|
/php-src/ext/bcmath/libbcmath/src/ |
H A D | round.c | 75 case PHP_ROUND_HALF_UP: in bc_round()
|
/php-src/ext/bcmath/ |
H A D | bcmath.c | 770 zend_long mode = PHP_ROUND_HALF_UP; in PHP_FUNCTION() 786 case PHP_ROUND_HALF_UP: in PHP_FUNCTION() 1771 zend_long rounding_mode = PHP_ROUND_HALF_UP; in PHP_METHOD() 1785 case PHP_ROUND_HALF_UP: in PHP_METHOD()
|
Completed in 48 milliseconds