Home
last modified time | relevance | path

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

123456

/php-src/ext/bcmath/tests/
H A Dbcpow.phpt6 bcmath.scale=0
29 Number "15" (scale 0)
37 Number "-15" (scale 0)
45 Number "1" (scale 0)
53 Number "-9" (scale 0)
61 Number "0" (scale 0)
69 Number "-0" (scale 0)
77 Number "14.14" (scale 0)
93 Number "0.15" (scale 0)
173 Number "1" (scale 10)
[all …]
H A Dbcpow_large_numbers.phpt6 bcmath.scale=0
29 Number "252" (scale 0)
33 Number "-112" (scale 0)
37 Number "14.14" (scale 0)
41 Number "-16.60" (scale 0)
45 Number "0.15" (scale 0)
49 Number "-0.01" (scale 0)
77 Number "252" (scale 10)
81 Number "-112" (scale 10)
85 Number "14.14" (scale 10)
[all …]
H A Dbcadd.phpt6 bcmath.scale=0
30 Number "15" (scale 0)
52 Number "-15" (scale 0)
74 Number "1" (scale 0)
96 Number "-9" (scale 0)
118 Number "14.14" (scale 0)
162 Number "0.15" (scale 0)
206 Number "99" (scale 0)
228 Number "15" (scale 10)
272 Number "1" (scale 10)
[all …]
H A Dbcdiv.phpt6 bcmath.scale=0
25 Number "15" (scale 0)
41 Number "-15" (scale 0)
57 Number "1" (scale 0)
73 Number "-9" (scale 0)
89 Number "14.14" (scale 0)
121 Number "0.15" (scale 0)
153 Number "15" (scale 10)
169 Number "-15" (scale 10)
185 Number "1" (scale 10)
[all …]
H A Dbcmul.phpt6 bcmath.scale=0
29 Number "15" (scale 0)
49 Number "-15" (scale 0)
69 Number "1" (scale 0)
89 Number "-9" (scale 0)
109 Number "14.14" (scale 0)
149 Number "0.15" (scale 0)
189 Number "15" (scale 10)
209 Number "-15" (scale 10)
229 Number "1" (scale 10)
[all …]
H A Dbcsub.phpt6 bcmath.scale=0
29 Number "15" (scale 0)
49 Number "-15" (scale 0)
69 Number "1" (scale 0)
89 Number "-9" (scale 0)
109 Number "14.14" (scale 0)
149 Number "0.15" (scale 0)
189 Number "15" (scale 10)
209 Number "-15" (scale 10)
229 Number "1" (scale 10)
[all …]
H A Dgh16262.phpt6 bcmath.scale=0
19 echo '========== scale: ', $scale ?? 'null', " ==========\n";
40 ["scale"]=>
48 ["scale"]=>
58 ["scale"]=>
66 ["scale"]=>
76 ["scale"]=>
84 ["scale"]=>
94 ["scale"]=>
102 ["scale"]=>
[all …]
H A Dbcpow_zero.phpt6 bcmath.scale=0
25 Number "0.00" (scale 0)
31 Number "-0.00" (scale 0)
37 Number "0.000000000000000000000000" (scale 0)
43 Number "-0.000000000000000000000000" (scale 0)
49 Number "-0" (scale 0)
55 Number "0" (scale 0)
61 Number "0.00" (scale 10)
67 Number "-0.00" (scale 10)
85 Number "-0" (scale 10)
[all …]
H A Dbcdiv_large_numbers.phpt6 bcmath.scale=0
34 Number "15151324141414.412312232141241" (scale 0)
50 Number "-132132245132134.1515123765412" (scale 0)
66 Number "141241241241241248267654747412" (scale 0)
82 Number "-149143276547656984948124912" (scale 0)
98 Number "0.1322135476547459213732911312" (scale 0)
114 Number "-0.123912932193769965476541321" (scale 0)
130 Number "15151324141414.412312232141241" (scale 10)
146 Number "-132132245132134.1515123765412" (scale 10)
162 Number "141241241241241248267654747412" (scale 10)
[all …]
H A Dbcadd_large_numbers.phpt6 bcmath.scale=0
38 Number "15151324141414.412312232141241" (scale 0)
58 Number "-132132245132134.1515123765412" (scale 0)
78 Number "141241241241241248267654747412" (scale 0)
98 Number "-149143276547656984948124912" (scale 0)
118 Number "0.1322135476547459213732911312" (scale 0)
138 Number "-0.123912932193769965476541321" (scale 0)
158 Number "15151324141414.412312232141241" (scale 10)
178 Number "-132132245132134.1515123765412" (scale 10)
198 Number "141241241241241248267654747412" (scale 10)
[all …]
H A Dbcsub_large_numbers.phpt6 bcmath.scale=0
38 Number "15151324141414.412312232141241" (scale 0)
58 Number "-132132245132134.1515123765412" (scale 0)
78 Number "141241241241241248267654747412" (scale 0)
98 Number "-149143276547656984948124912" (scale 0)
118 Number "0.1322135476547459213732911312" (scale 0)
138 Number "-0.123912932193769965476541321" (scale 0)
158 Number "15151324141414.412312232141241" (scale 10)
178 Number "-132132245132134.1515123765412" (scale 10)
198 Number "141241241241241248267654747412" (scale 10)
[all …]
H A Dbcmul_large_numbers.phpt6 bcmath.scale=0
38 Number "15151324141414.412312232141241" (scale 0)
58 Number "-132132245132134.1515123765412" (scale 0)
78 Number "141241241241241248267654747412" (scale 0)
98 Number "-149143276547656984948124912" (scale 0)
118 Number "0.1322135476547459213732911312" (scale 0)
138 Number "-0.123912932193769965476541321" (scale 0)
158 Number "15151324141414.412312232141241" (scale 10)
178 Number "-132132245132134.1515123765412" (scale 10)
198 Number "141241241241241248267654747412" (scale 10)
[all …]
H A Dbcdiv_by_one.phpt6 bcmath.scale=0
13 foreach ($scale_cases as $scale) {
14 echo "scale: {$scale}\n";
19 $quot = bcdiv($dividend, $divisor, $scale);
20 $quot_label = str_pad($quot, $scale + 2 + ($scale ? 1 : 0), ' ', STR_PAD_LEFT);
28 scale: 0
46 scale: 1
64 scale: 2
82 scale: 3
H A Dbcdiv_zero.phpt6 bcmath.scale=0
33 Number "0" (scale 0)
49 Number "0.00" (scale 0)
65 Number "-0" (scale 0)
81 Number "-0.00" (scale 0)
97 Number "0" (scale 10)
113 Number "0.00" (scale 10)
129 Number "-0" (scale 10)
145 Number "-0.00" (scale 10)
H A Dbcadd_zero.phpt6 bcmath.scale=0
33 Number "0" (scale 0)
53 Number "0.00" (scale 0)
73 Number "-0" (scale 0)
93 Number "-0.00" (scale 0)
113 Number "0" (scale 10)
133 Number "0.00" (scale 10)
153 Number "-0" (scale 10)
173 Number "-0.00" (scale 10)
/php-src/ext/bcmath/tests/number/
H A Dproperties_isset_empty_exists.phpt16 'scale' => isset($zero->scale),
20 'scale' => isset($one->scale),
24 'scale' => isset($has_frac->scale),
33 'scale' => empty($zero->scale),
37 'scale' => empty($one->scale),
41 'scale' => empty($has_frac->scale),
50 'scale' => property_exists($zero, 'scale'),
54 'scale' => property_exists($one, 'scale'),
58 'scale' => property_exists($has_frac, 'scale'),
69 ["scale"]=>
[all …]
H A Dproperties_read.phpt22 echo "scale: {$num->scale}\n";
28 scale: 0
31 scale: 1
34 scale: 0
37 scale: 0
40 scale: 4
43 scale: 4
46 scale: 0
49 scale: 0
H A Dconstruct_32bit.phpt44 ["scale"]=>
50 ["scale"]=>
56 ["scale"]=>
62 ["scale"]=>
68 ["scale"]=>
74 ["scale"]=>
80 ["scale"]=>
86 ["scale"]=>
92 ["scale"]=>
98 ["scale"]=>
[all …]
H A Dconstruct_64bit.phpt44 ["scale"]=>
50 ["scale"]=>
56 ["scale"]=>
62 ["scale"]=>
68 ["scale"]=>
74 ["scale"]=>
80 ["scale"]=>
86 ["scale"]=>
92 ["scale"]=>
98 ["scale"]=>
[all …]
/php-src/ext/bcmath/tests/number/operators/
H A Dpow_string.phpt44 ["scale"]=>
52 ["scale"]=>
60 ["scale"]=>
68 ["scale"]=>
76 ["scale"]=>
84 ["scale"]=>
92 ["scale"]=>
100 ["scale"]=>
108 ["scale"]=>
116 ["scale"]=>
[all …]
H A Ddiv_object.phpt33 ["scale"]=>
41 ["scale"]=>
49 ["scale"]=>
57 ["scale"]=>
65 ["scale"]=>
73 ["scale"]=>
81 ["scale"]=>
89 ["scale"]=>
97 ["scale"]=>
105 ["scale"]=>
[all …]
H A Ddiv_string.phpt36 ["scale"]=>
44 ["scale"]=>
52 ["scale"]=>
60 ["scale"]=>
68 ["scale"]=>
76 ["scale"]=>
84 ["scale"]=>
92 ["scale"]=>
100 ["scale"]=>
108 ["scale"]=>
[all …]
H A Dpow_object.phpt41 ["scale"]=>
49 ["scale"]=>
57 ["scale"]=>
65 ["scale"]=>
73 ["scale"]=>
81 ["scale"]=>
89 ["scale"]=>
97 ["scale"]=>
105 ["scale"]=>
113 ["scale"]=>
[all …]
/php-src/ext/bcmath/tests/number/methods/
H A Ddivmod.phpt36 ["scale"]=>
42 ["scale"]=>
50 ["scale"]=>
56 ["scale"]=>
64 ["scale"]=>
70 ["scale"]=>
78 ["scale"]=>
84 ["scale"]=>
92 ["scale"]=>
98 ["scale"]=>
[all …]
/php-src/ext/bcmath/
H A Dbcmath.stub.php8 function bcadd(string $num1, string $num2, ?int $scale = null): string {} argument
11 function bcsub(string $num1, string $num2, ?int $scale = null): string {} argument
14 function bcmul(string $num1, string $num2, ?int $scale = null): string {} argument
17 function bcdiv(string $num1, string $num2, ?int $scale = null): string {} argument
20 function bcmod(string $num1, string $num2, ?int $scale = null): string {} argument
26 function bcdivmod(string $num1, string $num2, ?int $scale = null): array {} argument
35 function bcsqrt(string $num, ?int $scale = null): string {} argument
37 function bccomp(string $num1, string $num2, ?int $scale = null): int {} argument
39 function bcscale(?int $scale = null): int {} argument
59 public int $scale; variable in BcMath\\Number
[all …]

Completed in 71 milliseconds

123456