Math matrix phpunit checks added

This commit is contained in:
Clemens Schwaighofer
2024-11-13 11:42:24 +09:00
parent 00821bd5ea
commit 625272198d
2 changed files with 158 additions and 9 deletions

View File

@@ -63,9 +63,9 @@ class Math
* @param float $number Number to cubic root
* @return float Calculated value
*/
public static function cbrt(float $number): float
public static function cbrt(float|int $number): float
{
return pow($number, 1.0 / 3);
return pow((float)$number, 1.0 / 3);
}
/**