@@ -28,6 +28,9 @@ discard block |
||
| 28 | 28 | |
| 29 | 29 | protected $extensions = true; |
| 30 | 30 | |
| 31 | + /** |
|
| 32 | + * @param integer $precision |
|
| 33 | + */ |
|
| 31 | 34 | public function __construct($value, $precision = null, $base = 10) |
| 32 | 35 | {
|
| 33 | 36 | $this->base = $base; |
@@ -148,7 +151,7 @@ discard block |
||
| 148 | 151 | * Note about precision: it uses the smaller of the two precisions (significant figures). |
| 149 | 152 | * |
| 150 | 153 | * @param $num |
| 151 | - * @param $precision |
|
| 154 | + * @param integer $precision |
|
| 152 | 155 | * @return DecimalInterface|NumberInterface |
| 153 | 156 | */ |
| 154 | 157 | public function divide($num, $precision = null) |
@@ -1011,6 +1014,9 @@ discard block |
||
| 1011 | 1014 | |
| 1012 | 1015 | } |
| 1013 | 1016 | |
| 1017 | + /** |
|
| 1018 | + * @param ImmutableNumber $num |
|
| 1019 | + */ |
|
| 1014 | 1020 | public function getGreatestCommonDivisor($num) |
| 1015 | 1021 | {
|
| 1016 | 1022 | /** @var ImmutableNumber $num */ |
@@ -1405,6 +1411,10 @@ discard block |
||
| 1405 | 1411 | return strpos($this->value, '.'); |
| 1406 | 1412 | } |
| 1407 | 1413 | |
| 1414 | + /** |
|
| 1415 | + * @param integer $pos |
|
| 1416 | + * @param integer $add |
|
| 1417 | + */ |
|
| 1408 | 1418 | protected function reduceDecimals(array $decimalArray, $pos, $add) |
| 1409 | 1419 | {
|
| 1410 | 1420 | |
@@ -1454,9 +1464,9 @@ discard block |
||
| 1454 | 1464 | abstract public function modulo($mod); |
| 1455 | 1465 | |
| 1456 | 1466 | /** |
| 1457 | - * @param $mod |
|
| 1467 | + * @param NumberInterface $mod |
|
| 1458 | 1468 | * |
| 1459 | - * @return NumberInterface|DecimalInterface |
|
| 1469 | + * @return NumberInterface |
|
| 1460 | 1470 | */ |
| 1461 | 1471 | abstract public function continuousModulo($mod); |
| 1462 | 1472 | |