Home
last modified time | relevance | path

Searched refs:floor (Results 1 – 25 of 29) sorted by relevance

12

/PHP-8.0/ext/standard/tests/math/
H A Dfloor_basic.phpt2 Test floor() - basic function test for floor()
39 -- floor 0 --
42 -- floor 0 --
45 -- floor 0.5 --
51 -- floor 1 --
54 -- floor -1 --
69 -- floor 31 --
72 -- floor 95 --
90 -- floor 1 --
93 -- floor --
[all …]
H A Dfloorceil.phpt2 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 Dfloor_variation1.phpt2 Test floor() function : usage variations - different data types as $value arg
7 echo "*** Testing floor() : usage variations ***\n";
66 var_dump(floor($input));
75 *** Testing floor() : usage variations ***
96 floor(): Argument #1 ($num) must be of type int|float, string given
99 floor(): Argument #1 ($num) must be of type int|float, string given
102 floor(): Argument #1 ($num) must be of type int|float, array given
105 floor(): Argument #1 ($num) must be of type int|float, string given
108 floor(): Argument #1 ($num) must be of type int|float, string given
111 floor(): Argument #1 ($num) must be of type int|float, string given
[all …]
H A Dround.phpt14 -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 Dfloor_basiclong_64bit.phpt2 Test floor function : 64bit long tests
24 var_dump(floor($longVal));
/PHP-8.0/Zend/tests/
H A Dbug42143.phpt17 var_dump(is_nan(floor(1)) == true);
/PHP-8.0/ext/standard/
H A Duuencode.c85 ee = s + (int) (floor((double)len / 3) * 3); in php_uuencode()
156 ee = s + (len == 45 ? 60 : (int) floor(len * 1.33)); in php_uudecode()
H A Dmath.c40 result = (int)floor(log10(value)); in php_intlog10abs()
100 tmp_value = floor(value + 0.5); in php_round_helper()
102 (mode == PHP_ROUND_HALF_EVEN && value == (0.5 + 2 * floor(tmp_value/2.0))) || in php_round_helper()
103 (mode == PHP_ROUND_HALF_ODD && value == (0.5 + 2 * floor(tmp_value/2.0) - 1.0))) in php_round_helper()
251 PHP_FUNCTION(floor) in PHP_FUNCTION() argument
260 RETURN_DOUBLE(floor(Z_DVAL_P(value))); in PHP_FUNCTION()
874 double fvalue = floor(Z_DVAL_P(arg)); /* floor it just in case */ in _php_math_zvaltobase()
H A Dbasic_functions.stub.php1035 function floor(int|float $num): float {} function
/PHP-8.0/ext/pdo_mysql/tests/
H A Dpdo_mysql_attr_server_version.phpt43 $major = floor($version / 10000);
44 $minor = floor(($version - ($main * 10000)) / 100);
/PHP-8.0/ext/date/lib/
H A Dastro.c76 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 Dtimelib.c189 *hour = floor(h); in timelib_decimal_hour_to_hms()
190 *min = floor((h - *hour) * 60); in timelib_decimal_hour_to_hms()
H A Dinterval.c78 rt->days = fabs(floor((one->sse - two->sse - (dst_h_corr * 3600) - (dst_m_corr * 60)) / 86400)); in timelib_diff()
/PHP-8.0/ext/mysqli/tests/
H A Dmysqli_stmt_send_long_data_packet_size_libmysql.phpt51 $limit = min(floor($max_allowed_packet / 1024 / 2), 10240);
67 if (floor($max_allowed_packet / 1024 / 2) <= 10240) {
H A Dmysqli_stmt_send_long_data.phpt54 $limit = min(floor($max_allowed_packet / 1024 / 2), 10240);
58 if (floor($max_allowed_packet / 1024) <= 10240) {
H A Dmysqli_stmt_send_long_data_packet_size_mysqlnd.phpt49 $limit = min(floor($max_allowed_packet / 1024 / 2), 10240);
73 if (floor($max_allowed_packet / 1024 / 2) <= 10240) {
H A Dmysqli_fetch_assoc_bit.phpt58 $max_loops = floor($max_value/$rand_max);
H A Dmysqli_stmt_get_result_bit.phpt64 $max_loops = floor($max_value/$rand_max);
H A Dmysqli_stmt_bind_result_bit.phpt78 $max_loops = floor($max_value/$rand_max);
/PHP-8.0/ext/pdo_pgsql/tests/
H A Dbug69752.phpt41 $usage = intval(floor(memory_get_usage() / 1024));
/PHP-8.0/ext/intl/dateformat/
H A Ddateformat_parse.c55 ZVAL_DOUBLE(return_value, result<0?ceil(result):floor(result)); in internal_parse_to_timestamp()
/PHP-8.0/ext/gd/libgd/
H A Dgd_interpolation.c75 # define floorf(x) ((float)(floor(x)))
898 register int iLeft = MAX(0, (int)floor (dCenter - width_d)); in _gdContributionsCalc()
2454 bbox->width = (int) floor(max.x - min.x) - 1; in gdTransformAffineBoundingBox()
2455 bbox->height = (int) floor(max.y - min.y); in gdTransformAffineBoundingBox()
H A Dgd.c37 # define floorf(x) ((float)(floor(x)))
446 i = floor(h);
/PHP-8.0/sapi/fpm/tests/
H A Dfcgi.inc255 floor($timeoutMs / 1000),
/PHP-8.0/ext/date/
H A Dphp_date.c713 case 'u': length = slprintf(buffer, sizeof(buffer), "%06d", (int) floor(t->us)); break; in date_format()
714 case 'v': length = slprintf(buffer, sizeof(buffer), "%03d", (int) floor(t->us / 1000)); break; in date_format()
4601 N -= floor(N / 24) * 24; in php_do_date_sunrise_sunset()

Completed in 83 milliseconds

12