Home
last modified time | relevance | path

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

12

/php-src/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 ***
100 floor(): Argument #1 ($num) must be of type int|float, string given
103 floor(): Argument #1 ($num) must be of type int|float, string given
106 floor(): Argument #1 ($num) must be of type int|float, array given
109 floor(): Argument #1 ($num) must be of type int|float, string given
112 floor(): Argument #1 ($num) must be of type int|float, string given
115 floor(): Argument #1 ($num) must be of type int|float, string given
[all …]
H A Dround.phpt17 var_dump(epsilon_equal( -2 , floor(-1.5) ));
18 var_dump(epsilon_equal( 1 , floor(1.5) ));
25 var_dump(epsilon_equal( LONG_MIN-1 , floor(LONG_MIN - 0.5) ));
26 var_dump(epsilon_equal( LONG_MIN , floor(LONG_MIN + 0.5) ));
33 var_dump(epsilon_equal( LONG_MAX-1 , floor(LONG_MAX - 0.5) ));
34 var_dump(epsilon_equal( LONG_MAX , floor(LONG_MAX + 0.5) ));
H A Dfloor_basiclong_64bit.phpt2 Test floor function : 64bit long tests
24 var_dump(floor($longVal));
H A Dround_modes_ceiling_and_floor.phpt31 var_dump(floor($number) === round($number, 0, RoundingMode::NegativeInfinity));
/php-src/ext/bcmath/tests/number/methods/
H A Dfloor.phpt2 BcMath\Number floor()
28 $method_ret = (new BcMath\Number($num))->floor();
/php-src/Zend/tests/
H A Dgh13178_2.phpt2 GH-13178: Unsetting last offset must floor iterator position
H A Dbug42143.phpt17 var_dump(is_nan(floor(1)) == true);
/php-src/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.c198 tmp_value = floor(places > 0 ? value * exponent : value / exponent); in _php_math_round()
289 PHP_FUNCTION(floor) in PHP_FUNCTION() argument
301 RETURN_DOUBLE(floor(Z_DVAL_P(value))); in PHP_FUNCTION()
950 double fvalue = floor(Z_DVAL_P(arg)); /* floor it just in case */ in _php_math_zvaltobase()
/php-src/ext/pdo_mysql/tests/
H A Dpdo_mysql_attr_server_version.phpt43 $major = floor($version / 10000);
44 $minor = floor(($version - ($main * 10000)) / 100);
/php-src/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.c198 *hour = floor(h); in timelib_decimal_hour_to_hms()
199 seconds = floor((h - *hour) * 3600); in timelib_decimal_hour_to_hms()
/php-src/ext/standard/tests/streams/
H A Dgh10031.phpt17 $chunks = floor($fsize / $chunksize); // 10 chunks * 99 bytes
/php-src/ext/mysqli/tests/
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.phpt45 $limit = min(floor($max_allowed_packet / 1024 / 2), 10240);
69 if (floor($max_allowed_packet / 1024 / 2) <= 10240) {
H A Dmysqli_fetch_assoc_bit.phpt56 $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.phpt79 $max_loops = floor($max_value/$rand_max);
/php-src/ext/pdo_pgsql/tests/
H A Dbug69752.phpt42 $usage = intval(floor(memory_get_usage() / 1024));
/php-src/ext/bcmath/
H A Dbcmath_arginfo.h150 ZEND_METHOD(BcMath_Number, floor);
187 ZEND_ME(BcMath_Number, floor, arginfo_class_BcMath_Number_floor, ZEND_ACC_PUBLIC)
H A Dbcmath.stub.php82 public function floor(): Number {} function in BcMath\\Number
/php-src/ext/intl/dateformat/
H A Ddateformat_parse.c64 ZVAL_DOUBLE(return_value, result<0?ceil(result):floor(result)); in internal_parse_to_timestamp()
/php-src/ext/gd/libgd/
H A Dgd_avif.c106 tilesLog2 = floor(log2(tiles)); in setEncoderTilesAndThreads()

Completed in 32 milliseconds

12