@@ -88,6 +88,9 @@ |
||
88 | 88 | |
89 | 89 | } |
90 | 90 | |
91 | + /** |
|
92 | + * @param NumberInterface $p |
|
93 | + */ |
|
91 | 94 | public static function inverseNormalCDF($p, $precision = 10) |
92 | 95 | { |
93 | 96 | $pi = Numbers::makePi(); |
@@ -21,6 +21,10 @@ discard block |
||
21 | 21 | |
22 | 22 | protected $symbol; |
23 | 23 | |
24 | + /** |
|
25 | + * @param integer $symbol |
|
26 | + * @param integer $precision |
|
27 | + */ |
|
24 | 28 | public function __construct($value, $symbol = Currency::DOLLAR, $precision = null, $base = 10) |
25 | 29 | { |
26 | 30 | $this->symbol = $symbol; |
@@ -63,7 +67,7 @@ discard block |
||
63 | 67 | } |
64 | 68 | |
65 | 69 | /** |
66 | - * @param $value |
|
70 | + * @param NumberInterface $value |
|
67 | 71 | * |
68 | 72 | * @return Currency |
69 | 73 | */ |
@@ -52,6 +52,9 @@ discard block |
||
52 | 52 | return $this->precision; |
53 | 53 | } |
54 | 54 | |
55 | + /** |
|
56 | + * @param NumberInterface $num |
|
57 | + */ |
|
55 | 58 | public function add($num) |
56 | 59 | { |
57 | 60 | $num = Numbers::makeOrDont($this, $num, $this->getPrecision()); |
@@ -101,7 +104,7 @@ discard block |
||
101 | 104 | * Note about precision: it uses the smaller of the two precisions (significant figures). |
102 | 105 | * |
103 | 106 | * @param $num |
104 | - * @return mixed |
|
107 | + * @return NumberInterface |
|
105 | 108 | */ |
106 | 109 | public function divide($num) |
107 | 110 | { |
@@ -398,6 +401,9 @@ discard block |
||
398 | 401 | |
399 | 402 | } |
400 | 403 | |
404 | + /** |
|
405 | + * @param ImmutableNumber $num |
|
406 | + */ |
|
401 | 407 | public function getGreatestCommonDivisor($num) |
402 | 408 | { |
403 | 409 | /** @var ImmutableNumber $num */ |
@@ -10,6 +10,9 @@ |
||
10 | 10 | class ImmutableNumber extends Number implements NumberInterface, DecimalInterface |
11 | 11 | { |
12 | 12 | |
13 | + /** |
|
14 | + * @param ImmutableNumber $mod |
|
15 | + */ |
|
13 | 16 | public function modulo($mod) |
14 | 17 | { |
15 | 18 | $oldBase = $this->convertForModification(); |
@@ -178,7 +178,7 @@ |
||
178 | 178 | } |
179 | 179 | |
180 | 180 | /** |
181 | - * @param int|float|DecimalInterface $min |
|
181 | + * @param integer $min |
|
182 | 182 | * @param int|float|DecimalInterface $max |
183 | 183 | * @param int $maxIterations |
184 | 184 | * |
@@ -158,7 +158,7 @@ |
||
158 | 158 | } |
159 | 159 | |
160 | 160 | /** |
161 | - * @param int|float|NumberInterface $min |
|
161 | + * @param integer $min |
|
162 | 162 | * @param int|float|NumberInterface $max |
163 | 163 | * @param int $maxIterations |
164 | 164 | * |
@@ -163,7 +163,7 @@ |
||
163 | 163 | * WARNING: This function is of very limited use with Poisson distributions, and may represent a SIGNIFICANT |
164 | 164 | * performance hit for certain values of $min, $max, $lambda, and $maxIterations |
165 | 165 | * |
166 | - * @param int|float|NumberInterface $min |
|
166 | + * @param integer $min |
|
167 | 167 | * @param int|float|NumberInterface $max |
168 | 168 | * @param int $maxIterations |
169 | 169 | * |