@@ -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 */ |