@@ -85,6 +85,9 @@ |
||
85 | 85 | return $this->PDFByValue($value); |
86 | 86 | } |
87 | 87 | |
88 | + /** |
|
89 | + * @param NumberInterface $value |
|
90 | + */ |
|
88 | 91 | public function PDFByValue($value) |
89 | 92 | { |
90 | 93 | $value = Numbers::makeOrDont($this->numberType, $value); |
@@ -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(); |
@@ -20,6 +20,9 @@ discard block |
||
20 | 20 | |
21 | 21 | protected $base; |
22 | 22 | |
23 | + /** |
|
24 | + * @param integer $precision |
|
25 | + */ |
|
23 | 26 | public function __construct($value, $precision = null, $base = 10) |
24 | 27 | { |
25 | 28 | $this->base = $base; |
@@ -96,7 +99,7 @@ discard block |
||
96 | 99 | * Note about precision: it uses the smaller of the two precisions (significant figures). |
97 | 100 | * |
98 | 101 | * @param $num |
99 | - * @return mixed |
|
102 | + * @return NumberInterface |
|
100 | 103 | */ |
101 | 104 | public function divide($num) |
102 | 105 | { |
@@ -486,6 +489,9 @@ discard block |
||
486 | 489 | return $comparison; |
487 | 490 | } |
488 | 491 | |
492 | + /** |
|
493 | + * @param integer $value |
|
494 | + */ |
|
489 | 495 | public function equals($value) |
490 | 496 | { |
491 | 497 | $value = Numbers::makeOrDont(Numbers::IMMUTABLE, $value, $this->getPrecision()); |
@@ -497,6 +503,9 @@ discard block |
||
497 | 503 | } |
498 | 504 | } |
499 | 505 | |
506 | + /** |
|
507 | + * @param integer $value |
|
508 | + */ |
|
500 | 509 | public function greaterThan($value) |
501 | 510 | { |
502 | 511 | $value = Numbers::makeOrDont(Numbers::IMMUTABLE, $value, $this->getPrecision()); |
@@ -529,6 +538,9 @@ discard block |
||
529 | 538 | } |
530 | 539 | } |
531 | 540 | |
541 | + /** |
|
542 | + * @param integer $value |
|
543 | + */ |
|
532 | 544 | public function lessThanOrEqualTo($value) |
533 | 545 | { |
534 | 546 | $value = Numbers::makeOrDont(Numbers::IMMUTABLE, $value, $this->getPrecision()); |