Home
last modified time | relevance | path

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

12

/PHP-7.1/ext/standard/tests/math/
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_error.phpt2 Test abs() function : error conditions - incorrect number of args
5 /* Prototype : number abs ( mixed $number )
11 * Pass incorrect number of arguments to abs() to test behaviour
14 echo "*** Testing abs() : error conditions ***\n";
20 var_dump(abs($arg_0, $extra_arg));
23 var_dump(abs());
28 *** Testing abs() : error conditions ***
32 Warning: abs() expects exactly 1 parameter, 2 given in %s on line %d
37 Warning: abs() expects exactly 1 parameter, 0 given in %s on line %d
H A Dabs_variation.phpt2 Test abs() function : usage variations - different data types as $number arg
5 /* Prototype : number abs ( mixed $number )
11 * Pass different data types as $number argument to abs() to test behaviour
14 echo "*** Testing abs() : usage variations ***\n";
24 return "abs";
30 abs
55 /*19*/ "abs",
56 'abs',
72 // loop through each element of $inputs to check the behavior of abs()
76 var_dump(abs($input) );
[all …]
H A Dabs_basic.phpt2 Test abs() function : basic functionality
7 /* Prototype : number abs ( mixed $number )
12 echo "*** Testing abs() : basic functionality ***\n";
30 $res = abs($values[$i]);
36 *** Testing abs() : basic functionality ***
H A Dabs_basiclong_64bit.phpt2 Test abs function : 64bit long tests
24 var_dump(abs($longVal));
/PHP-7.1/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-7.1/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.phpt26 var_dump(abs($timeMillis - $time * 1000) < 2000);
/PHP-7.1/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-7.1/ext/interbase/tests/
H A D003.phpt98 if(abs($row->V_DOUBLE - $v_double) > abs($v_double / 1E15)){
103 if(abs($row->V_FLOAT - $v_float) > abs($v_float / 1E7)){
H A D007.phpt92 if(abs($row->V_DOUBLE[$i] - $v_double[$i]) > abs($v_double[$i] / 1E15)) {
97 if(abs($row->V_FLOAT[$i] - $v_float[$i]) > abs($v_float[$i] / 1E7)) {
H A D006.phpt75 if(abs($row->V_DOUBLE - $v_double) > abs($v_double / 1E15)) {
80 if(abs($row->V_FLOAT - $v_float) > abs($v_float / 1E7)) {
/PHP-7.1/ext/standard/
H A Dphp_math.h53 PHP_FUNCTION(abs);
H A Dmath.c140 f1 = php_intpow10(abs(places)); in _php_math_round()
148 f2 = php_intpow10(abs((int)use_precision)); in _php_math_round()
161 f2 = php_intpow10(abs((int)use_precision)); in _php_math_round()
181 if (abs(places) < 23) { in _php_math_round()
289 PHP_FUNCTION(abs) in PHP_FUNCTION() argument
H A Dimage.c172 result->height = abs((int32_t)result->height); in php_handle_bmp()
/PHP-7.1/tests/
H A Dquicktester.inc59 $result = abs(($left-$right) / $left) < 1e-12;
/PHP-7.1/Zend/
H A Dzend_long.h107 # define ZEND_ABS abs
/PHP-7.1/ext/date/
H A Dphp_date.c1188 localtime ? abs(offset->offset / 3600) : 0, in date_format()
1207 abs(offset->offset / 3600), in date_format()
1208 abs((offset->offset % 3600) / 60) in date_format()
2275 abs(utc_offset / 60), in date_object_get_properties()
2276 abs((utc_offset % 60))); in date_object_get_properties()
2367 abs(tzobj->tzi.utc_offset / 60), in date_object_get_properties_timezone()
2368 abs((tzobj->tzi.utc_offset % 60))); in date_object_get_properties_timezone()
2406 abs(tzobj->tzi.utc_offset / 60), in date_object_get_debug_info_timezone()
2407 abs((tzobj->tzi.utc_offset % 60))); in date_object_get_debug_info_timezone()
3924 abs(utc_offset / 60), in PHP_FUNCTION()
[all …]
/PHP-7.1/ext/date/lib/
H A Dtm2unixtime.c189 time->d -= (7 - (abs(time->relative.weekday) - current_dow)); in do_adjust_for_weekday()
/PHP-7.1/
H A DCODING_STANDARDS245 /* {{{ proto int abs(int number)
247 PHP_FUNCTION(abs)
H A Dltmain.sh5731 [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
5732 *) abs=`pwd`"/$lib" ;;
5734 newdlfiles="$newdlfiles $abs"
5740 [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
5741 *) abs=`pwd`"/$lib" ;;
5743 newdlprefiles="$newdlprefiles $abs"
/PHP-7.1/ext/gd/libgd/
H A Dgd.c1122 dx = abs (x2 - x1); in gdImageLine()
1123 dy = abs (y2 - y1); in gdImageLine()
1313 if (abs(dx) > abs(dy)) { in gdImageAALine()
1383 dx = abs(x2 - x1); in gdImageDashedLine()
1384 dy = abs(y2 - y1); in gdImageDashedLine()
/PHP-7.1/ext/soap/
H A Dphp_encoding.c2914 …zeof(tzbuf), "%c%02d:%02d", (ta->tm_gmtoff < 0) ? '-' : '+', abs(ta->tm_gmtoff / 3600), abs( (ta->… in to_xml_datetime_ex()
2917 …st ? _timezone - 3600:_timezone)>0)?'-':'+', abs((ta->tm_isdst ? _timezone - 3600 : _timezone) / 3… in to_xml_datetime_ex()
2919 …isdst ? timezone - 3600:timezone)>0)?'-':'+', abs((ta->tm_isdst ? timezone - 3600 : timezone) / 36… in to_xml_datetime_ex()
/PHP-7.1/ext/gmp/
H A Dgmp.c760 num_len = mpz_sizeinbase(gmpnum, abs(base)); in gmp_strval()

Completed in 95 milliseconds

12