@@ -905,7 +905,7 @@ discard block |
||
905 | 905 | * @param Decimal $x |
906 | 906 | * @param Decimal $firstTerm |
907 | 907 | * @param callable $generalTerm |
908 | - * @param $scale |
|
908 | + * @param integer $scale |
|
909 | 909 | * @return Decimal |
910 | 910 | */ |
911 | 911 | private static function factorialSerie (Decimal $x, Decimal $firstTerm, callable $generalTerm, $scale) |
@@ -1081,7 +1081,7 @@ discard block |
||
1081 | 1081 | /** |
1082 | 1082 | * Return value as a integer |
1083 | 1083 | * |
1084 | - * @return float |
|
1084 | + * @return integer |
|
1085 | 1085 | */ |
1086 | 1086 | public function asInteger() |
1087 | 1087 | { |
@@ -1092,7 +1092,7 @@ discard block |
||
1092 | 1092 | * Return the inner representation of the class |
1093 | 1093 | * use with caution |
1094 | 1094 | * |
1095 | - * @return number |
|
1095 | + * @return string |
|
1096 | 1096 | */ |
1097 | 1097 | public function innerValue() |
1098 | 1098 | { |
@@ -1269,6 +1269,7 @@ discard block |
||
1269 | 1269 | } |
1270 | 1270 | |
1271 | 1271 | /** |
1272 | + * @param string $sign |
|
1272 | 1273 | * @return string |
1273 | 1274 | */ |
1274 | 1275 | private static function normalizeSign($sign) |
@@ -1280,6 +1281,10 @@ discard block |
||
1280 | 1281 | return $sign; |
1281 | 1282 | } |
1282 | 1283 | |
1284 | + /** |
|
1285 | + * @param string $strValue |
|
1286 | + * @param integer $scale |
|
1287 | + */ |
|
1283 | 1288 | private static function removeTrailingZeros($strValue, &$scale) |
1284 | 1289 | { |
1285 | 1290 | preg_match('/^[+\-]?[0-9]+(\.([0-9]*[1-9])?(0+)?)?$/', $strValue, $captures); |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use Litipk\BigNumbers\DecimalConstants as DecimalConstants; |
6 | 6 | use Litipk\BigNumbers\InfiniteDecimal as InfiniteDecimal; |
7 | - |
|
8 | 7 | use Litipk\Exceptions\NotImplementedException as NotImplementedException; |
9 | 8 | use Litipk\Exceptions\InvalidArgumentTypeException as InvalidArgumentTypeException; |
10 | 9 |