/PHP-7.0/ext/standard/tests/math/ |
H A D | floor_basic.phpt | 2 Test floor() - basic function test for floor() 45 -- floor 0 -- 48 -- floor 0 -- 51 -- floor 0.5 -- 57 -- floor 1 -- 60 -- floor -1 -- 75 -- floor 31 -- 78 -- floor 95 -- 96 -- floor 1 -- 99 -- floor -- [all …]
|
H A D | floorceil.phpt | 2 Tests for floor en ceil 13 $a = floor (-0); $b = floor (-0.5); $c = floor (-1); 14 $d = floor (-1.5); $e = floor (-1.8); $f = floor (-2.7); 17 $a = floor (0); $b = floor (0.5); $c = floor (1); 18 $d = floor (1.5); $e = floor (1.8); $f = floor (2.7);
|
H A D | floor_error.phpt | 2 Test floor() - error conditions - incorrect number of args 5 /* Prototype : float floor ( float $value ) 10 echo "*** Testing floor() : error conditions ***\n"; 15 var_dump(floor($arg_0, $extra_arg)); 18 var_dump(floor()); 22 *** Testing floor() : error conditions *** 26 Warning: floor() expects exactly 1 parameter, 2 given in %s on line %d 31 Warning: floor() expects exactly 1 parameter, 0 given in %s on line %d
|
H A D | round.phpt | 14 -2 ~== floor(-1.5) 15 1 ~== floor(1.5) 22 LONG_MIN-1 ~== floor(LONG_MIN - 0.5) 23 LONG_MIN ~== floor(LONG_MIN + 0.5) 30 LONG_MAX-1 ~== floor(LONG_MAX - 0.5) 31 LONG_MAX ~== floor(LONG_MAX + 0.5)
|
H A D | floor_variation1.phpt | 2 Test floor() function : usage variations - different data types as $value arg 7 /* Prototype : float floor ( float $value ) 12 echo "*** Testing floor() : usage variations ***\n"; 66 // loop through each element of $inputs to check the behaviour of floor() 70 var_dump(floor($input)); 77 *** Testing floor() : usage variations ***
|
H A D | floor_basiclong_64bit.phpt | 2 Test floor function : 64bit long tests 24 var_dump(floor($longVal));
|
/PHP-7.0/ext/standard/ |
H A D | uuencode.c | 88 ee = s + (int) (floor((double)len / 3) * 3); in php_uuencode() 154 ee = s + (len == 45 ? 60 : (int) floor(len * 1.33)); in php_uudecode()
|
H A D | math.c | 42 result = (int)floor(log10(value)); in php_intlog10abs() 114 tmp_value = floor(value + 0.5); in php_round_helper() 116 (mode == PHP_ROUND_HALF_EVEN && value == (0.5 + 2 * floor(tmp_value/2.0))) || in php_round_helper() 117 (mode == PHP_ROUND_HALF_ODD && value == (0.5 + 2 * floor(tmp_value/2.0) - 1.0))) in php_round_helper() 347 PHP_FUNCTION(floor) in PHP_FUNCTION() argument 358 RETURN_DOUBLE(floor(Z_DVAL_P(value))); in PHP_FUNCTION() 961 double fvalue = floor(Z_DVAL_P(arg)); /* floor it just in case */ in _php_math_zvaltobase()
|
H A D | php_math.h | 57 PHP_FUNCTION(floor);
|
/PHP-7.0/Zend/tests/ |
H A D | bug42143.phpt | 17 var_dump(is_nan(floor(1)) == true);
|
/PHP-7.0/ext/pdo_mysql/tests/ |
H A D | pdo_mysql_attr_server_version.phpt | 43 $major = floor($version / 10000); 44 $minor = floor(($version - ($main * 10000)) / 100);
|
/PHP-7.0/ext/date/lib/ |
H A D | astro.c | 76 return (x - 360.0 * floor(x * INV360)); in astro_revolution() 84 return (x - 360.0 * floor(x * INV360 + 0.5)); in astro_rev180()
|
H A D | timelib.c | 221 *hour = floor(h); in timelib_decimal_hour_to_hms() 222 *min = floor((h - *hour) * 60); in timelib_decimal_hour_to_hms()
|
H A D | interval.c | 73 rt->days = fabs(floor((one->sse - two->sse - (dst_h_corr * 3600) - (dst_m_corr * 60)) / 86400)); in timelib_diff()
|
/PHP-7.0/ext/mysqli/tests/ |
H A D | mysqli_stmt_send_long_data_packet_size_libmysql.phpt | 52 $limit = min(floor($max_allowed_packet / 1024 / 2), 10240); 68 if (floor($max_allowed_packet / 1024 / 2) <= 10240) {
|
H A D | mysqli_stmt_send_long_data_packet_size_mysqlnd.phpt | 50 $limit = min(floor($max_allowed_packet / 1024 / 2), 10240); 74 if (floor($max_allowed_packet / 1024 / 2) <= 10240) {
|
H A D | mysqli_stmt_send_long_data.phpt | 67 $limit = min(floor($max_allowed_packet / 1024 / 2), 10240); 71 if (floor($max_allowed_packet / 1024) <= 10240) {
|
H A D | mysqli_fetch_assoc_bit.phpt | 62 $max_loops = floor($max_value/$rand_max);
|
H A D | mysqli_stmt_get_result_bit.phpt | 68 $max_loops = floor($max_value/$rand_max);
|
H A D | mysqli_stmt_bind_result_bit.phpt | 79 $max_loops = floor($max_value/$rand_max);
|
/PHP-7.0/ext/pdo_pgsql/tests/ |
H A D | bug69752.phpt | 41 $usage = intval(floor(memory_get_usage() / 1024));
|
/PHP-7.0/ext/intl/dateformat/ |
H A D | dateformat_parse.c | 58 ZVAL_DOUBLE(return_value, result<0?ceil(result):floor(result)); in internal_parse_to_timestamp()
|
/PHP-7.0/ext/gd/libgd/ |
H A D | gd_interpolation.c | 75 # define floorf(x) ((float)(floor(x))) 965 register int iLeft = MAX(0, (int)floor (dCenter - width_d)); in _gdContributionsCalc() 1799 const int angle_rounded = (int)floor(degrees * 100); in gdImageRotateGeneric() 2572 bbox->width = (int) floor(max.x - min.x) - 1; in gdTransformAffineBoundingBox() 2573 bbox->height = (int) floor(max.y - min.y); in gdTransformAffineBoundingBox()
|
/PHP-7.0/sapi/fpm/tests/ |
H A D | fcgi.inc | 242 … return stream_set_timeout($this->_sock, floor($timeoutMs / 1000), ($timeoutMs % 1000) * 1000);
|
/PHP-7.0/ext/date/ |
H A D | php_date.c | 1167 case 'u': length = slprintf(buffer, 32, "%06d", (int) floor(t->f * 1000000 + 0.5)); break; in date_format() 1168 case 'v': length = slprintf(buffer, 32, "%03d", (int) floor(t->f * 1000 + 0.5)); break; in date_format() 4801 N -= floor(N / 24) * 24; in php_do_date_sunrise_sunset()
|