Home
last modified time | relevance | path

Searched refs:ceil (Results 1 – 25 of 31) sorted by relevance

12

/php-src/ext/standard/tests/math/
H A Dfloorceil.phpt2 Tests for floor en ceil
5 $a = ceil (-0); $b = ceil (-1); $c = ceil (-1.5);
6 $d = ceil (-1.8); $e = ceil (-2.7);
9 $a = ceil (0); $b = ceil (0.5); $c = ceil (1);
10 $d = ceil (1.5); $e = ceil (1.8); $f = ceil (2.7);
H A Dceil_variation1.phpt2 Test ceil() function : usage variations - different data types as $value arg
7 echo "*** Testing ceil() : usage variations ***\n";
66 var_dump(ceil($input));
75 *** Testing ceil() : usage variations ***
100 ceil(): Argument #1 ($num) must be of type int|float, string given
103 ceil(): Argument #1 ($num) must be of type int|float, string given
106 ceil(): Argument #1 ($num) must be of type int|float, array given
109 ceil(): Argument #1 ($num) must be of type int|float, string given
112 ceil(): Argument #1 ($num) must be of type int|float, string given
115 ceil(): Argument #1 ($num) must be of type int|float, string given
[all …]
H A Dceil_basic.phpt2 Test ceil() - basic function test for ceil()
7 echo "*** Testing ceil() : basic functionality ***\n";
31 $res = ceil($values[$i]);
37 *** Testing ceil() : basic functionality ***
58 Deprecated: ceil(): Passing null to parameter #1 ($num) of type int|float is deprecated in %s on li…
H A Dround.phpt15 var_dump(epsilon_equal( -1 , ceil(-1.5) ));
16 var_dump(epsilon_equal( 2 , ceil( 1.5) ));
19 var_dump(epsilon_equal( LONG_MIN , ceil(LONG_MIN - 0.5) ));
20 var_dump(epsilon_equal( LONG_MIN+1 , ceil(LONG_MIN + 0.5) ));
27 var_dump(epsilon_equal( LONG_MAX , ceil(LONG_MAX - 0.5) ));
28 var_dump(epsilon_equal( LONG_MAX+1 , ceil(LONG_MAX + 0.5) ));
H A Dceil_basiclong_64bit.phpt2 Test ceil function : 64bit long tests
24 var_dump(ceil($longVal));
H A Dround_modes_ceiling_and_floor.phpt25 var_dump(ceil($number) === round($number, 0, RoundingMode::PositiveInfinity));
/php-src/ext/bcmath/tests/number/methods/
H A Dceil.phpt2 BcMath\Number ceil()
28 $method_ret = (new BcMath\Number($num))->ceil();
/php-src/ext/mbstring/tests/
H A Dmb_str_split_ru.phpt33 $ceil = ceil($len / $i);
35 if($ceil != $cnt){
36 echo "$cs WRONG CHUNKS NUMBER: expected/actual: $ceil/$cnt\n";
H A Dmb_str_split_jp.phpt40 $ceil = ceil($len / $i);
42 if ($ceil != $cnt){
43 echo "$cs WRONG CHUNKS NUMBER: expected/actual: $ceil/$cnt\n";
/php-src/Zend/tests/
H A Dnew_oom.inc3 $mb_used = (int) ceil(memory_get_usage() / (1024 ** 2));
/php-src/ext/dom/lexbor/lexbor/core/
H A Ddiyfp.c140 k = (int) ceil((-61 - exp) * LEXBOR_DIYFP_D_1_LOG2_10) in lexbor_cached_power_bin()
/php-src/ext/bcmath/
H A Dbcmath_arginfo.h151 ZEND_METHOD(BcMath_Number, ceil);
188 ZEND_ME(BcMath_Number, ceil, arginfo_class_BcMath_Number_ceil, ZEND_ACC_PUBLIC)
H A Dbcmath.stub.php84 public function ceil(): Number {} function in BcMath\\Number
H A Dbcmath.c1763 PHP_METHOD(BcMath_Number, ceil) in PHP_METHOD() argument
/php-src/ext/standard/
H A Duuencode.c140 dest = zend_string_alloc((size_t) ceil(src_len * 0.75), 0); in php_uudecode()
H A Dmath.c201 tmp_value = ceil(places > 0 ? value * exponent : value / exponent); in _php_math_round()
270 PHP_FUNCTION(ceil) in PHP_FUNCTION() argument
282 RETURN_DOUBLE(ceil(Z_DVAL_P(value))); in PHP_FUNCTION()
/php-src/ext/openssl/tests/
H A Dbug77390.phpt94 $parts = str_split($data, (int) ceil(strlen($data) / 3));
/php-src/ext/random/
H A Dgammasection.c69 double si = ceil(s); in ceilint()
/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/standard/html_tables/
H A Dhtml_table_gen.php735 $numelems = max(pow(2, ceil(log(1.5*count($origdp))/log(2))),16);
/php-src/ext/gd/libgd/
H A Dgd_avif.c100 tiles = (int) ceil((double) imageArea / MIN_TILE_AREA); in setEncoderTilesAndThreads()
H A Dgd_bmp.c887 padding = ((int)ceil(0.5 * info->width)) % 4; in bmp_read_4bit()
H A Dgd_interpolation.c879 windows_size = 2 * (int)ceil(width_d) + 1; in _gdContributionsCalc()
888 int iRight = MIN((int)ceil(dCenter + width_d), (int)src_size - 1); in _gdContributionsCalc()
/php-src/win32/build/
H A Dmkdist.php217 $size = 512 * ceil((int)$hdr['size'] / 512);
/php-src/ext/hash/
H A Dhash.c1048 digest_length = (zend_long) ceil((float) length / 2.0); in PHP_FUNCTION()
1051 loops = (zend_long) ceil((float) digest_length / (float) ops->digest_size); in PHP_FUNCTION()

Completed in 48 milliseconds

12