Home
last modified time | relevance | path

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

123

/PHP-7.1/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.phpt61 $scale = oci_field_scale($s, $i);
65 …echo "$name\t: is_null $is_null, precision $precision, scale $scale, size $size, typeraw $typeraw,…
159 C1_NUMBER : is_null F, precision 0, scale -127, size 22, typeraw 2, type NUMBER
162 C3_VARCHAR21 : is_null F, precision 0, scale 0, size 4, typeraw 1, type VARCHAR2
164 C4_NUMBER52 : is_null F, precision 5, scale 2, size 22, typeraw 2, type NUMBER
169 C1_NUMBER : is_null F, precision 0, scale -127, size 22, typeraw 2, type NUMBER
179 C3_VARCHAR21 : is_null F, precision 0, scale 0, size 4, typeraw 1, type VARCHAR2
186 C4_NUMBER52 : is_null F, precision 5, scale 2, size 22, typeraw 2, type NUMBER
205 C1_NUMBER : is_null F, precision 0, scale -127, size 22, typeraw 2, type NUMBER
220 C4_NUMBER52 : is_null F, precision 5, scale 2, size 22, typeraw 2, type NUMBER
[all …]
/PHP-7.1/ext/bcmath/
H A Dbcmath.c42 ZEND_ARG_INFO(0, scale)
48 ZEND_ARG_INFO(0, scale)
54 ZEND_ARG_INFO(0, scale)
60 ZEND_ARG_INFO(0, scale)
72 ZEND_ARG_INFO(0, scale)
78 ZEND_ARG_INFO(0, scale)
83 ZEND_ARG_INFO(0, scale)
89 ZEND_ARG_INFO(0, scale)
93 ZEND_ARG_INFO(0, scale)
252 result->n_scale = scale; in PHP_FUNCTION()
[all …]
/PHP-7.1/ext/bcmath/libbcmath/src/
H A Dnearzero.c46 bc_is_near_zero (num, scale) in bc_is_near_zero() argument
48 int scale;
54 if (scale > num->n_scale)
55 scale = num->n_scale;
58 count = num->n_len + scale;
H A Dbcmath.h104 _PROTOTYPE(bc_num _bc_new_num_ex, (int length, int scale, int persistent));
112 _PROTOTYPE(void bc_str2num, (bc_num *num, char *str, int scale));
124 _PROTOTYPE(char bc_is_near_zero, (bc_num num, int scale));
132 _PROTOTYPE(void bc_multiply, (bc_num n1, bc_num n2, bc_num *prod, int scale));
134 _PROTOTYPE(int bc_divide, (bc_num n1, bc_num n2, bc_num *quot, int scale));
137 int scale));
140 bc_num *rem, int scale));
143 bc_num *result, int scale));
146 int scale));
148 _PROTOTYPE(int bc_sqrt, (bc_num *num, int scale));
[all …]
H A Dinit.c48 _bc_new_num_ex (length, scale, persistent) in _bc_new_num_ex() argument
49 int length, scale, persistent; in _bc_new_num_ex()
53 if ((size_t)length+(size_t)scale > INT_MAX) {
57 temp = (bc_num) safe_pemalloc (1, sizeof(bc_struct)+length, scale, persistent);
69 temp->n_scale = scale;
72 temp->n_ptr = (char *) safe_pemalloc (1, length, scale, persistent);
75 memset (temp->n_ptr, 0, length+scale);
H A Ddiv.c88 bc_divide (bc_num n1, bc_num n2, bc_num *quot, int scale) in bc_divide() argument
108 qval = bc_new_num (n1->n_len, scale); in bc_divide()
110 memset (&qval->n_value[n1->n_len],0,scale); in bc_divide()
112 n1->n_len + MIN(n1->n_scale,scale)); in bc_divide()
126 if (scale1 < scale) in bc_divide()
127 extra = scale - scale1; in bc_divide()
148 if (len2 > len1+scale) in bc_divide()
150 qdigits = scale+1; in bc_divide()
159 qdigits = len1-len2+scale+1; in bc_divide()
163 qval = bc_new_num (qdigits-scale,scale); in bc_divide()
[all …]
H A Ddivmod.c48 bc_divmod (bc_num num1, bc_num num2, bc_num *quot, bc_num *rem, int scale) in bc_divmod() argument
58 rscale = MAX (num1->n_scale, num2->n_scale+scale); in bc_divmod()
83 bc_modulo (bc_num num1, bc_num num2, bc_num *result, int scale) in bc_modulo() argument
85 return bc_divmod (num1, num2, NULL, result, scale); in bc_modulo()
H A Draisemod.c46 bc_raisemod (bc_num base, bc_num expo, bc_num mod, bc_num *result, int scale) in bc_raisemod() argument
84 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 Draise.c47 bc_raise (bc_num num1, bc_num num2, bc_num *result, int scale) in bc_raise() argument
76 rscale = scale; in bc_raise()
81 rscale = MIN (num1->n_scale*exponent, MAX(scale, num1->n_scale)); in bc_raise()
H A Dstr2num.c44 bc_str2num (bc_num *num, char *str, int scale) in bc_str2num() argument
70 strscale = MIN(strscale, scale); in bc_str2num()
H A Dsqrt.c45 bc_sqrt (bc_num *num, int scale) in bc_sqrt() argument
73 rscale = MAX (scale, (*num)->n_scale); in bc_sqrt()
H A Drecmul.c54 new_sub_num (length, scale, value) in new_sub_num() argument
55 int length, scale; in new_sub_num()
73 temp->n_scale = scale;
278 bc_multiply (bc_num n1, bc_num n2, bc_num *prod, int scale) in bc_multiply() argument
288 prod_scale = MIN(full_scale,MAX(scale,MAX(n1->n_scale,n2->n_scale))); in bc_multiply()
/PHP-7.1/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()
H A Dmathmake.c4 #define scale 1024 macro
12 printf ("#define costScale %d\n", scale); in main()
16 basis[i] = cos ((double) i * .0174532925) * scale; in main()
36 printf ("#define sintScale %d\n", scale); in main()
/PHP-7.1/ext/bcmath/tests/
H A Dbug72093.phpt2 Bug 72093: bcpowmod accepts negative scale and corrupts _one_ definition
21 bc math warning: non-zero scale in exponent
H A Dbug75178.phpt21 bc math warning: non-zero scale in base
23 bc math warning: non-zero scale in modulus
H A Dbcscale_variation002.phpt6 bcmath.scale=-2
H A Dbcsqrt_variation001.phpt6 bcmath.scale=0
H A Dbcpow_variation001.phpt6 bcmath.scale=0
H A Dbcscale_variation001.phpt6 bcmath.scale=0
H A Dbcsqrt.phpt6 bcmath.scale=0
H A Dbcmod.phpt6 bcmath.scale=0
H A Dbcpow.phpt6 bcmath.scale=0
H A Dbcadd.phpt6 bcmath.scale=0

Completed in 28 milliseconds

123