Home
last modified time | relevance | path

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

12

/PHP-8.1/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-8.1/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-8.1/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-8.1/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-8.1/ext/standard/tests/hrtime/
H A Dhrtime.phpt18 $d = abs($d0 - $d1)/$d1;
/PHP-8.1/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-8.1/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
/PHP-8.1/Zend/
H A Dzend_long.h104 # define ZEND_ABS abs
/PHP-8.1/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()
1867 abs(utc_offset / 3600), in date_object_get_properties_for()
1868 abs(((utc_offset % 3600) / 60))); in date_object_get_properties_for()
1976 abs((int)(utc_offset / 3600)), in php_timezone_to_string()
1977 abs((int)(utc_offset % 3600) / 60), in php_timezone_to_string()
[all …]
/PHP-8.1/ext/date/lib/
H A Dtm2unixtime.c174 time->d -= (7 - (abs(time->relative.weekday) - current_dow)); in do_adjust_for_weekday()

Completed in 63 milliseconds

12