Home
last modified time | relevance | path

Searched refs:abs (Results 1 – 25 of 30) sorted by relevance

12

/PHP-8.0/ext/standard/tests/math/
H A Dabs_variation.phpt2 Test abs() function : usage variations - different data types as $number arg
9 echo "*** Testing abs() : usage variations ***\n";
19 return "abs";
25 abs
50 /*19*/ "abs",
51 'abs',
72 var_dump(abs($input));
82 *** Testing abs() : usage variations ***
103 abs(): Argument #1 ($num) must be of type int|float, string given
106 abs(): Argument #1 ($num) must be of type int|float, string given
[all …]
H A Dabs.phpt12 1 === abs(-1)
13 1.5 === abs(-1.5)
14 1 === abs("-1")
15 1.5 === abs("-1.5")
16 -LONG_MIN+1 === abs(LONG_MIN-1)
17 -LONG_MIN === abs(LONG_MIN)
18 -(LONG_MIN+1) === abs(LONG_MIN+1)
H A Dabs_basic.phpt2 Test abs() function : basic functionality
7 echo "*** Testing abs() : basic functionality ***\n";
25 $res = abs($values[$i]);
30 *** Testing abs() : basic functionality ***
H A Dabs_basiclong_64bit.phpt2 Test abs function : 64bit long tests
24 var_dump(abs($longVal));
/PHP-8.0/ext/gd/tests/
H A Dbug49600.phpt19 if ( abs($x[0] - $y[0]) > 1
20 || abs($x[2] - $y[2]) > 1
21 || abs($x[4] - $y[4]) > 1
22 || abs($x[6] - $y[6]) > 1 ) {
/PHP-8.0/ext/intl/tests/
H A Dcalendar_getNow_basic.phpt15 var_dump(abs($now - $proc_now) < 500);
16 var_dump(abs($time * 1000 - $proc_now) < 2000);
H A Dcalendar_createInstance_basic.phpt24 var_dump(abs($timeMillis - $time * 1000) < 2000);
/PHP-8.0/ext/pdo_pgsql/tests/
H A Dgetnotify.phpt74 var_dump($diff >= 1 || 1 - abs($diff) < .05);
82 var_dump($diff < 1 || abs(1 - abs($diff)) < .05);
H A Dbug69752.phpt46 if (abs($first_time_usage - $usage) > 3){
/PHP-8.0/ext/standard/tests/hrtime/
H A Dhrtime.phpt18 $d = abs($d0 - $d1)/$d1;
/PHP-8.0/tests/
H A Dquicktester.inc59 $result = abs(($left-$right) / $left) < 1e-12;
/PHP-8.0/ext/standard/
H A Dmath.c138 f1 = php_intpow10(abs(places)); in _php_math_round()
146 f2 = php_intpow10(abs((int)use_precision)); in _php_math_round()
159 f2 = php_intpow10(abs((int)use_precision)); in _php_math_round()
179 if (abs(places) < 23) { in _php_math_round()
209 PHP_FUNCTION(abs) in PHP_FUNCTION() argument
H A Dimage.c163 result->height = abs((int32_t)result->height); in php_handle_bmp()
H A Dbasic_functions.stub.php1031 function abs(int|float $num): int|float {} function
H A Dbasic_functions_arginfo.h2648 ZEND_FUNCTION(abs);
3288 ZEND_FE(abs, arginfo_abs)
/PHP-8.0/Zend/
H A Dzend_long.h104 # define ZEND_ABS abs
/PHP-8.0/ext/date/
H A Dphp_date.c654 abs(offset->offset / 3600), in date_format()
727 localtime ? abs(offset->offset / 3600) : 0, in date_format()
746 abs(offset->offset / 3600), in date_format()
747 abs((offset->offset % 3600) / 60) in date_format()
760 localtime ? abs(offset->offset / 3600) : 0, in date_format()
769 localtime ? abs(offset->offset / 3600) : 0, in date_format()
872 abs(offset->offset / 3600), in php_idate()
1878 abs(utc_offset / 3600), in date_object_get_properties_for()
1879 abs(((utc_offset % 3600) / 60))); in date_object_get_properties_for()
1976 abs((int)(utc_offset / 3600)), in php_timezone_to_string()
[all …]
/PHP-8.0/ext/date/lib/
H A Dtm2unixtime.c178 time->d -= (7 - (abs(time->relative.weekday) - current_dow)); in do_adjust_for_weekday()
/PHP-8.0/ext/gd/libgd/
H A Dgd.c1062 dx = abs (x2 - x1); in gdImageLine()
1063 dy = abs (y2 - y1); in gdImageLine()
1259 if (abs((int)dx) > abs((int)dy)) { in gdImageAALine()
1329 dx = abs(x2 - x1); in gdImageDashedLine()
1330 dy = abs(y2 - y1); in gdImageDashedLine()
H A Dgd_interpolation.c2344 end_x = bbox.width + abs(bbox.x); in gdTransformAffineCopy()
2345 end_y = bbox.height + abs(bbox.y); in gdTransformAffineCopy()
/PHP-8.0/build/
H A Dltmain.sh5744 [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
5745 *) abs=`pwd`"/$lib" ;;
5747 newdlfiles="$newdlfiles $abs"
5753 [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
5754 *) abs=`pwd`"/$lib" ;;
5756 newdlprefiles="$newdlprefiles $abs"
/PHP-8.0/ext/fileinfo/libmagic/
H A Dcompress.c267 if (nbytes < CAST(size_t, abs(compr[i].maglen))) in file_zmagic()
/PHP-8.0/
H A DCODING_STANDARDS.md285 PHP_FUNCTION(abs)
/PHP-8.0/ext/soap/
H A Dphp_encoding.c2870 …st ? _timezone - 3600:_timezone)>0)?'-':'+', abs((ta->tm_isdst ? _timezone - 3600 : _timezone) / 3… in to_xml_datetime_ex()
2872 …isdst ? timezone - 3600:timezone)>0)?'-':'+', abs((ta->tm_isdst ? timezone - 3600 : timezone) / 36… in to_xml_datetime_ex()
/PHP-8.0/ext/gmp/
H A Dgmp.c653 num_len = mpz_sizeinbase(gmpnum, abs(base)); in gmp_strval()

Completed in 158 milliseconds

12