Home
last modified time | relevance | path

Searched refs:scale (Results 1 – 25 of 74) sorted by relevance

123

/PHP-8.2/ext/oci8/tests/
H A Dfield_funcs2.phpt2 Bug #41917 (invalid scale and precision)
46 $scale = oci_field_scale($s, $i);
47 echo "$name ".$t[$name] .": precision $precision, scale $scale\n";
53 C01 NUMBER: precision 0, scale -127
55 C03 NUMBER(9): precision 9, scale 0
61 C09 DECIMAL(4): precision 4, scale 0
62 C10 INTEGER: precision 38, scale 0
63 C11 INT: precision 38, scale 0
64 C12 SMALLINT: precision 38, scale 0
65 C13 FLOAT: precision 126, scale -127
[all …]
H A Dimp_res_field.phpt62 $scale = oci_field_scale($s, $i);
66 …echo "$name\t: is_null $is_null, precision $precision, scale $scale, size $size, typeraw $typeraw,…
158 C1_NUMBER : is_null F, precision 0, scale -127, size 22, typeraw 2, type NUMBER
161 C3_VARCHAR21 : is_null F, precision 0, scale 0, size 4, typeraw 1, type VARCHAR2
163 C4_NUMBER52 : is_null F, precision 5, scale 2, size 22, typeraw 2, type NUMBER
168 C1_NUMBER : is_null F, precision 0, scale -127, size 22, typeraw 2, type NUMBER
178 C3_VARCHAR21 : is_null F, precision 0, scale 0, size 4, typeraw 1, type VARCHAR2
185 C4_NUMBER52 : is_null F, precision 5, scale 2, size 22, typeraw 2, type NUMBER
204 C1_NUMBER : is_null F, precision 0, scale -127, size 22, typeraw 2, type NUMBER
219 C4_NUMBER52 : is_null F, precision 5, scale 2, size 22, typeraw 2, type NUMBER
[all …]
/PHP-8.2/ext/bcmath/
H A Dbcmath.stub.php6 function bcadd(string $num1, string $num2, ?int $scale = null): string {} argument
9 function bcsub(string $num1, string $num2, ?int $scale = null): string {} argument
12 function bcmul(string $num1, string $num2, ?int $scale = null): string {} argument
15 function bcdiv(string $num1, string $num2, ?int $scale = null): string {} argument
18 function bcmod(string $num1, string $num2, ?int $scale = null): string {} argument
21 function bcpowmod(string $num, string $exponent, string $modulus, ?int $scale = null): string {} argument
24 function bcpow(string $num, string $exponent, ?int $scale = null): string {} argument
27 function bcsqrt(string $num, ?int $scale = null): string {} argument
29 function bccomp(string $num1, string $num2, ?int $scale = null): int {} argument
31 function bcscale(?int $scale = null): int {} argument
H A Dbcmath.c159 int scale; in PHP_FUNCTION() local
169 scale = BCG(bc_precision); in PHP_FUNCTION()
174 scale = (int) scale_param; in PHP_FUNCTION()
210 int scale; in PHP_FUNCTION() local
220 scale = BCG(bc_precision); in PHP_FUNCTION()
225 scale = (int) scale_param; in PHP_FUNCTION()
261 int scale; in PHP_FUNCTION() local
271 scale = BCG(bc_precision); in PHP_FUNCTION()
276 scale = (int) scale_param; in PHP_FUNCTION()
322 scale = BCG(bc_precision); in PHP_FUNCTION()
[all …]
H A Dbcmath_arginfo.h7 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, scale, IS_LONG, 1, "null")
22 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, scale, IS_LONG, 1, "null")
28 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, scale, IS_LONG, 1, "null")
33 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, scale, IS_LONG, 1, "null")
39 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, scale, IS_LONG, 1, "null")
43 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, scale, IS_LONG, 1, "null")
/PHP-8.2/ext/bcmath/libbcmath/src/
H A Dbcmath.h93 bc_num _bc_new_num_ex(int length, int scale, int persistent);
101 int bc_str2num(bc_num *num, char *str, int scale);
103 zend_string *bc_num2str_ex(bc_num num, int scale);
113 char bc_is_zero_for_scale(bc_num num, int scale);
115 char bc_is_near_zero(bc_num num, int scale);
123 void bc_multiply(bc_num n1, bc_num n2, bc_num *prod, int scale);
125 int bc_divide(bc_num n1, bc_num n2, bc_num *quot, int scale);
127 int bc_modulo(bc_num num1, bc_num num2, bc_num *resul, int scale);
133 void bc_raise(bc_num num1, bc_num num2, bc_num *resul, int scale);
135 int bc_sqrt(bc_num *num, int scale);
[all …]
H A Dnum2str.c43 *bc_num2str_ex (num, scale) in bc_num2str_ex() argument
45 int scale;
53 …signch = num->n_sign != PLUS && !bc_is_zero_for_scale(num, MIN(num->n_scale, scale)); /* Number o…
54 if (scale > 0)
55 str = zend_string_alloc(num->n_len + scale + signch + 1, 0);
69 if (scale > 0)
72 for (index=0; index<scale && index<num->n_scale; index++)
74 for (index = num->n_scale; index<scale; index++)
H A Dnearzero.c45 bc_is_near_zero (num, scale) in bc_is_near_zero() argument
47 int scale;
53 if (scale > num->n_scale)
54 scale = num->n_scale;
57 count = num->n_len + scale;
H A Dinit.c43 _bc_new_num_ex (length, scale, persistent) in _bc_new_num_ex() argument
44 int length, scale, persistent; in _bc_new_num_ex()
48 temp = (bc_num) safe_pemalloc (1, sizeof(bc_struct)+length, scale, persistent);
51 temp->n_scale = scale;
54 temp->n_ptr = (char *) safe_pemalloc (1, length, scale, persistent);
56 memset (temp->n_ptr, 0, length+scale);
H A Ddiv.c83 bc_divide (bc_num n1, bc_num n2, bc_num *quot, int scale) in bc_divide() argument
103 qval = bc_new_num (n1->n_len, scale); in bc_divide()
105 memset (&qval->n_value[n1->n_len],0,scale); in bc_divide()
107 n1->n_len + MIN(n1->n_scale,scale)); in bc_divide()
121 if (scale1 < scale) in bc_divide()
122 extra = scale - scale1; in bc_divide()
141 if (len2 > len1+scale) in bc_divide()
143 qdigits = scale+1; in bc_divide()
152 qdigits = len1-len2+scale+1; in bc_divide()
156 qval = bc_new_num (qdigits-scale,scale); in bc_divide()
[all …]
H A Ddivmod.c47 bc_divmod (bc_num num1, bc_num num2, bc_num *quot, bc_num *rem, int scale) in bc_divmod() argument
57 rscale = MAX (num1->n_scale, num2->n_scale+scale); in bc_divmod()
82 bc_modulo (bc_num num1, bc_num num2, bc_num *result, int scale) in bc_modulo() argument
84 return bc_divmod (num1, num2, NULL, result, scale); in bc_modulo()
H A Draisemod.c42 zend_result bc_raisemod (bc_num base, bc_num expo, bc_num mod, bc_num *result, int scale) in bc_raisemod() argument
83 rscale = MAX(scale, power->n_scale); in bc_raisemod()
87 temp = bc_new_num (1, scale); in bc_raisemod()
97 (void) bc_modulo (temp, modulus, &temp, scale); in bc_raisemod()
101 (void) bc_modulo (power, modulus, &power, scale); in bc_raisemod()
H A Dzero.c43 bc_is_zero_for_scale (bc_num num, int scale) in bc_is_zero_for_scale() argument
52 count = num->n_len + scale; in bc_is_zero_for_scale()
H A Draise.c46 bc_raise (bc_num num1, bc_num num2, bc_num *result, int scale) in bc_raise() argument
81 rscale = scale; in bc_raise()
86 rscale = MIN (num1->n_scale*exponent, MAX(scale, num1->n_scale)); in bc_raise()
H A Dstr2num.c43 bc_str2num (bc_num *num, char *str, int scale) in bc_str2num() argument
69 strscale = MIN(strscale, scale); in bc_str2num()
/PHP-8.2/ext/bcmath/tests/
H A Dnegative_scale.phpt2 all errors on negative scale
6 bcmath.scale=0
61 bcadd(): Argument #3 ($scale) must be between 0 and 2147483647
62 bcsub(): Argument #3 ($scale) must be between 0 and 2147483647
63 bcmul(): Argument #3 ($scale) must be between 0 and 2147483647
64 bcdiv(): Argument #3 ($scale) must be between 0 and 2147483647
65 bcmod(): Argument #3 ($scale) must be between 0 and 2147483647
67 bcpow(): Argument #3 ($scale) must be between 0 and 2147483647
68 bcsqrt(): Argument #2 ($scale) must be between 0 and 2147483647
69 bccomp(): Argument #3 ($scale) must be between 0 and 2147483647
[all …]
H A Dbcscale_variation003.phpt6 bcmath.scale=0
9 var_dump((int) ini_get('bcmath.scale'));
11 var_dump((int) ini_get('bcmath.scale'));
13 var_dump((int) ini_get('bcmath.scale'));
15 var_dump((int) ini_get('bcmath.scale'));
H A Dbcscale_variation001.phpt6 bcmath.scale=0
18 bcscale(): Argument #1 ($scale) must be between 0 and 2147483647
H A Dscale_ini.phpt2 BCMath functions return result with default scale
6 bcmath.scale = 5
H A Dbug72093.phpt2 Bug 72093: bcpowmod fails on negative scale and corrupts _one_ definition
19 bcpowmod(): Argument #4 ($scale) must be between 0 and 2147483647
H A Dbcscale_variation002.phpt6 bcmath.scale=-2
H A Dbcsqrt_variation001.phpt6 bcmath.scale=0
H A Dbug.66364.phpt2 Bug #66364 (BCMath bcmul ignores scale parameter)
H A Dbcpow_variation001.phpt6 bcmath.scale=0
/PHP-8.2/ext/gd/libgd/
H A Dtestac.c11 double scale,
73 double scale, in testDrawing() argument
81 im_out = gdImageCreateTrueColor ((int) (gdImageSX (im_in) * scale), in testDrawing()
82 (int) (gdImageSY (im_in) * scale)); in testDrawing()
95 gdImageFill (im_out, (int) (gdImageSX (im_in) * scale / 2), in testDrawing()
96 (int) (gdImageSY (im_in) * scale / 2), in testDrawing()
107 (int) (gdImageSX (im_in) * scale), (int) (gdImageSY (im_in) * scale), in testDrawing()

Completed in 19 milliseconds

123