@@ -10,6 +10,10 @@ discard block |
||
10 | 10 | // |
11 | 11 | // Private method to return an array of the factors of the input value |
12 | 12 | // |
13 | + |
|
14 | + /** |
|
15 | + * @param double $value |
|
16 | + */ |
|
13 | 17 | private static function factors($value) |
14 | 18 | { |
15 | 19 | $startVal = floor(sqrt($value)); |
@@ -33,6 +37,10 @@ discard block |
||
33 | 37 | return [(int) $value]; |
34 | 38 | } |
35 | 39 | |
40 | + /** |
|
41 | + * @param integer $num |
|
42 | + * @param integer $n |
|
43 | + */ |
|
36 | 44 | private static function romanCut($num, $n) |
37 | 45 | { |
38 | 46 | return ($num - ($num % $n)) / $n; |
@@ -312,6 +320,9 @@ discard block |
||
312 | 320 | return Functions::VALUE(); |
313 | 321 | } |
314 | 322 | |
323 | + /** |
|
324 | + * @param integer $b |
|
325 | + */ |
|
315 | 326 | public static function evaluateGCD($a, $b) |
316 | 327 | { |
317 | 328 | return $b ? self::evaluateGCD($b, $a % $b) : $a; |
@@ -448,7 +459,7 @@ discard block |
||
448 | 459 | * @category Mathematical and Trigonometric Functions |
449 | 460 | * |
450 | 461 | * @param float $number The positive real number for which you want the logarithm |
451 | - * @param float $base The base of the logarithm. If base is omitted, it is assumed to be 10. |
|
462 | + * @param integer $base The base of the logarithm. If base is omitted, it is assumed to be 10. |
|
452 | 463 | * |
453 | 464 | * @return float |
454 | 465 | */ |
@@ -766,8 +777,8 @@ discard block |
||
766 | 777 | * |
767 | 778 | * Computes x raised to the power y. |
768 | 779 | * |
769 | - * @param float $x |
|
770 | - * @param float $y |
|
780 | + * @param integer $x |
|
781 | + * @param integer $y |
|
771 | 782 | * |
772 | 783 | * @return float |
773 | 784 | */ |
@@ -841,7 +852,7 @@ discard block |
||
841 | 852 | * |
842 | 853 | * @param mixed ...$args Data values |
843 | 854 | * |
844 | - * @return float |
|
855 | + * @return integer |
|
845 | 856 | */ |
846 | 857 | public static function QUOTIENT(...$args) |
847 | 858 | { |
@@ -979,9 +990,6 @@ discard block |
||
979 | 990 | * |
980 | 991 | * Returns the sum of a power series |
981 | 992 | * |
982 | - * @param float $x Input value to the power series |
|
983 | - * @param float $n Initial power to which you want to raise $x |
|
984 | - * @param float $m Step by which to increase $n for each term in the series |
|
985 | 993 | * @param array of mixed Data Series |
986 | 994 | * |
987 | 995 | * @return float |
@@ -1178,7 +1186,7 @@ discard block |
||
1178 | 1186 | * @param mixed $aArgs |
1179 | 1187 | * @param mixed $sumArgs |
1180 | 1188 | * |
1181 | - * @return float |
|
1189 | + * @return integer |
|
1182 | 1190 | */ |
1183 | 1191 | public static function SUMIF($aArgs, $condition, $sumArgs = []) |
1184 | 1192 | { |
@@ -1218,9 +1226,8 @@ discard block |
||
1218 | 1226 | * @category Mathematical and Trigonometric Functions |
1219 | 1227 | * |
1220 | 1228 | * @param mixed $args Data values |
1221 | - * @param string $condition the criteria that defines which cells will be summed |
|
1222 | 1229 | * |
1223 | - * @return float |
|
1230 | + * @return integer |
|
1224 | 1231 | */ |
1225 | 1232 | public static function SUMIFS(...$args) |
1226 | 1233 | { |
@@ -1409,7 +1416,7 @@ discard block |
||
1409 | 1416 | * |
1410 | 1417 | * Truncates value to the number of fractional digits by number_digits. |
1411 | 1418 | * |
1412 | - * @param float $value |
|
1419 | + * @param integer $value |
|
1413 | 1420 | * @param int $digits |
1414 | 1421 | * |
1415 | 1422 | * @return float Truncated value |