Searched refs:PHP_ROUND_HALF_UP (Results 1 – 8 of 8) sorted by relevance
/PHP-8.2/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_modes.phpt | 5 var_dump (round (2.5, 0, PHP_ROUND_HALF_UP)); 9 var_dump (round (-2.5, 0, PHP_ROUND_HALF_UP)); 13 var_dump (round (3.5, 0, PHP_ROUND_HALF_UP)); 17 var_dump (round (-3.5, 0, PHP_ROUND_HALF_UP));
|
H A D | round_prerounding.phpt | 7 var_dump (round (0.285, 2, PHP_ROUND_HALF_UP));
|
/PHP-8.2/ext/standard/ |
H A D | php_math.h | 100 #ifndef PHP_ROUND_HALF_UP 101 #define PHP_ROUND_HALF_UP 0x01 /* Arithmetic rounding, up == away from zero */ macro
|
H A D | math.c | 275 zend_long mode = PHP_ROUND_HALF_UP; in PHP_FUNCTION() 1030 d = _php_math_round(d, dec, PHP_ROUND_HALF_UP); in _php_math_number_format_ex()
|
H A D | basic_functions.stub.php | 329 const PHP_ROUND_HALF_UP = UNKNOWN; define 2306 function round(int|float $num, int $precision = 0, int $mode = PHP_ROUND_HALF_UP): float {}
|
H A D | basic_functions_arginfo.h | 3564 REGISTER_LONG_CONSTANT("PHP_ROUND_HALF_UP", PHP_ROUND_HALF_UP, CONST_PERSISTENT); in register_basic_functions_symbols()
|
H A D | array.c | 2673 size = (uint32_t)_php_math_round(__calc_size, 0, PHP_ROUND_HALF_UP); \
|
Completed in 43 milliseconds