Home
last modified time | relevance | path

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

12

/php-src/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 ***
107 abs(): Argument #1 ($num) must be of type int|float, string given
110 abs(): Argument #1 ($num) must be of type int|float, string given
[all …]
H A Dabs.phpt11 var_dump(1 === abs(-1));
12 var_dump(1.5 === abs(-1.5));
13 var_dump(1 === abs("-1"));
14 var_dump(1.5 === abs("-1.5"));
15 var_dump(-LONG_MIN+1 === abs(LONG_MIN-1));
16 var_dump(-LONG_MIN === abs(LONG_MIN));
17 var_dump(-(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 ***
43 Deprecated: abs(): Passing null to parameter #1 ($num) of type int|float is deprecated in %s on lin…
H A Dabs_basiclong_64bit.phpt2 Test abs function : 64bit long tests
24 var_dump(abs($longVal));
H A Dround.phpt12 return abs(($left-$right) / $left) < 1e-12;
H A Dpow.phpt12 return abs(($left-$right) / $left) < 1e-12;
/php-src/ext/gd/tests/
H A Dbug49600.phpt20 if ( abs($x[0] - $y[0]) > 1
21 || abs($x[2] - $y[2]) > 1
22 || abs($x[4] - $y[4]) > 1
23 || abs($x[6] - $y[6]) > 1 ) {
/php-src/ext/intl/tests/
H A Dcalendar_getNow_basic.phpt13 var_dump(abs($now - $proc_now) < 500);
14 var_dump(abs($time * 1000 - $proc_now) < 2000);
H A Dcalendar_createInstance_basic.phpt22 var_dump(abs($timeMillis - $time * 1000) < 2000);
/php-src/ext/pdo_pgsql/tests/
H A Dgetnotify.phpt76 var_dump($diff >= 1 || 1 - abs($diff) < .05);
84 var_dump($diff < 1 || abs(1 - abs($diff)) < .05);
H A Dbug69752.phpt48 if (abs($first_time_usage - $usage) > 3){
/php-src/ext/standard/tests/hrtime/
H A Dhrtime.phpt18 $d = abs($d0 - $d1)/$d1;
/php-src/Zend/asm/
H A Dmake_arm_aapcs_macho_gas.S59 @ compute abs address of label finish
H A Dmake_ppc32_sysv_elf_gas.S97 # compute abs address of trampoline, use as PC
101 # compute abs address of label finish
H A Dmake_arm_aapcs_elf_gas.S62 @ compute abs address of label finish
H A Dmake_mips64_n64_elf_gas.S72 # psudo instruction compute abs address of label finish based on GP
H A Dmake_ppc32_sysv_xcoff_gas.S100 # compute abs address of label .L_finish
H A Dmake_ppc64_sysv_xcoff_gas.S112 # compute abs address of label .L_finish
H A Dmake_mips32_o32_elf_gas.S75 # compute abs address of label finish
H A Dmake_i386_ms_pe_masm.asm73 ; compute abs address of label trampoline
79 ; compute abs address of label finish
H A Dmake_ppc64_sysv_elf_gas.S140 # compute abs address of label finish
/php-src/Zend/
H A Dzend_long.h105 # define ZEND_ABS abs
/php-src/ext/standard/
H A Dmath.c173 exponent = php_intpow10(abs(places)); in _php_math_round()
215 if (abs(places) < 23) { in _php_math_round()
244 PHP_FUNCTION(abs) in PHP_FUNCTION() argument
/php-src/ext/date/
H A Dphp_date.c705 abs(offset->offset / 3600), in date_format()
780 localtime ? abs(offset->offset / 3600) : 0, in date_format()
799 abs(offset->offset / 3600), in date_format()
800 abs((offset->offset % 3600) / 60) in date_format()
813 localtime ? abs(offset->offset / 3600) : 0, in date_format()
822 localtime ? abs(offset->offset / 3600) : 0, in date_format()
1950 abs(utc_offset / 3600), in date_object_to_hash()
1951 abs(((utc_offset % 3600) / 60))); in date_object_to_hash()
2083 abs((int)(utc_offset / 3600)), in php_timezone_to_string()
2084 abs((int)(utc_offset % 3600) / 60), in php_timezone_to_string()
[all …]
/php-src/ext/date/lib/
H A Dtm2unixtime.c183 time->d -= (7 - (abs(time->relative.weekday) - current_dow)); in do_adjust_for_weekday()

Completed in 102 milliseconds

12