feat: update math
This commit is contained in:
@@ -28,6 +28,7 @@ public class MathUtil {
|
||||
public static final BigDecimal LITTLE_NUMBER = new BigDecimal(
|
||||
"0.000000000000000000000000000000000000000001");
|
||||
|
||||
// n!, n的阶乘
|
||||
public static BigInteger factorial(long n) {
|
||||
if (n < 0) {
|
||||
throw new RuntimeException("Not supported n < 0");
|
||||
|
||||
Reference in New Issue
Block a user