feat: update math

This commit is contained in:
2025-09-07 15:20:58 +08:00
parent e74f5a31bd
commit 04c12c2373

View File

@@ -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");