public class BigIntegers extends Object
Modifier and Type | Method and Description |
---|---|
static BigInteger |
abs(BigInteger d)
返回绝对值
|
static BigInteger |
add(BigInteger s,
BigInteger... b)
相加
|
static BigInteger |
addSkipNegative(BigInteger s,
BigInteger... b)
相加(跳过负数)
|
static BigInteger |
avg(BigInteger... b)
平均值
|
static BigInteger |
avgSkip(BigInteger... b)
平均值 跳过0和负数
|
static BigInteger |
avgSkipNegative(BigInteger... b)
平均值 跳过负数
|
static BigInteger |
avgSkipZero(BigInteger... b)
平均值 跳过0
|
static boolean |
compared(BigInteger d1,
BigInteger d2)
等于
|
static BigInteger |
divide(BigInteger s,
BigInteger... b)
相除
|
static BigInteger |
divideSkip(BigInteger s,
BigInteger... b)
相除 (跳过负数, 0)
|
static BigInteger |
divideSkipNegative(BigInteger s,
BigInteger... b)
相除(跳过负数)
|
static BigInteger |
divideSkipZero(BigInteger s,
BigInteger... b)
相除(跳过0)
|
static boolean |
eq(BigInteger d1,
BigInteger d2)
等于
|
static boolean |
gteZero(BigInteger d)
是否大于等于0
|
static boolean |
gtZero(BigInteger d)
是否大于0
|
static boolean |
isNegative(BigInteger d)
是否为负数
|
static boolean |
isZero(BigInteger d)
是否为0
|
static boolean |
lteZero(BigInteger d)
是否小于等于0
|
static boolean |
ltZero(BigInteger d)
是否小于0
|
static BigInteger |
max(BigInteger... b)
最大值
|
static BigInteger |
min(BigInteger... b)
最小值
|
static BigInteger |
multiply(BigInteger s,
BigInteger... b)
相乘
|
static BigInteger |
multiplySkip(BigInteger s,
BigInteger... b)
相乘 (跳过负数, 0)
|
static BigInteger |
multiplySkipNegative(BigInteger s,
BigInteger... b)
相乘(跳过负数)
|
static BigInteger |
multiplySkipZero(BigInteger s,
BigInteger... b)
相乘(跳过0)
|
static BigInteger |
subtract(BigInteger s,
BigInteger... b)
相减
|
static BigInteger |
subtractSkipNegative(BigInteger s,
BigInteger... b)
相减(跳过负数)
|
static BigInteger |
sum(BigInteger... b)
总和
|
static BigInteger |
sumSkipNegative(BigInteger... b)
总和 跳过负数
|
static BigInteger |
toBigInteger(Object o)
Object -> BigInteger
|
static BigInteger |
toBigInteger(Object o,
BigInteger defaultV)
Object -> BigInteger
|
static BigInteger[] |
toBigIntegers(Object... o)
Object[] -> BigIntegers[]
|
static Double |
toDouble(BigInteger b)
BigInteger -> Double
|
static Double |
toDouble(BigInteger b,
Double defaultV)
BigInteger -> Double
|
static Integer |
toInteger(BigInteger b)
BigInteger -> Integer
|
static Integer |
toInteger(BigInteger b,
Integer defaultV)
BigInteger -> Integer
|
static Long |
toLong(BigInteger b)
BigInteger -> Long
|
static Long |
toLong(BigInteger b,
Long defaultV)
BigInteger -> Long
|
static String |
toStr(BigInteger b)
BigInteger -> String
|
static String |
toStr(BigInteger b,
String defaultV)
BigInteger -> String
|
static String |
toStr(BigInteger b,
String defaultV,
int radix)
BigInteger -> String
|
public static BigInteger toBigInteger(Object o)
o
- Objectpublic static BigInteger toBigInteger(Object o, BigInteger defaultV)
o
- ObjectdefaultV
- 默认值public static BigInteger[] toBigIntegers(Object... o)
o
- Object[]public static String toStr(BigInteger b)
b
- BigIntegerpublic static String toStr(BigInteger b, String defaultV)
b
- BigIntegerdefaultV
- 默认值public static String toStr(BigInteger b, String defaultV, int radix)
b
- BigIntegerdefaultV
- 默认值radix
- 进制public static Long toLong(BigInteger b)
b
- BigIntegerpublic static Long toLong(BigInteger b, Long defaultV)
b
- BigIntegerdefaultV
- 默认值public static Integer toInteger(BigInteger b)
b
- BigIntegerpublic static Integer toInteger(BigInteger b, Integer defaultV)
b
- BigIntegerdefaultV
- 默认值public static Double toDouble(BigInteger b)
b
- BigIntegerpublic static Double toDouble(BigInteger b, Double defaultV)
b
- BigIntegerdefaultV
- 默认值public static BigInteger add(BigInteger s, BigInteger... b)
s
- 加数b
- 加数public static BigInteger addSkipNegative(BigInteger s, BigInteger... b)
s
- 加数b
- 加数public static BigInteger subtract(BigInteger s, BigInteger... b)
s
- 被减数b
- 减数public static BigInteger subtractSkipNegative(BigInteger s, BigInteger... b)
s
- 被减数b
- 减数public static BigInteger multiply(BigInteger s, BigInteger... b)
s
- 被减数b
- 减数public static BigInteger multiplySkip(BigInteger s, BigInteger... b)
s
- 乘数b
- 乘数public static BigInteger multiplySkipNegative(BigInteger s, BigInteger... b)
s
- 乘数b
- 乘数public static BigInteger multiplySkipZero(BigInteger s, BigInteger... b)
s
- 乘数b
- 乘数public static BigInteger divide(BigInteger s, BigInteger... b)
s
- 被除数b
- 除数public static BigInteger divideSkip(BigInteger s, BigInteger... b)
s
- 被除数b
- 除数public static BigInteger divideSkipNegative(BigInteger s, BigInteger... b)
s
- 被除数b
- 除数public static BigInteger divideSkipZero(BigInteger s, BigInteger... b)
s
- 被除数b
- 除数public static BigInteger max(BigInteger... b)
b
- ignorepublic static BigInteger min(BigInteger... b)
b
- ignorepublic static BigInteger sum(BigInteger... b)
b
- ignorepublic static BigInteger sumSkipNegative(BigInteger... b)
b
- ignorepublic static BigInteger avg(BigInteger... b)
b
- ignorepublic static BigInteger avgSkipZero(BigInteger... b)
b
- ignorepublic static BigInteger avgSkipNegative(BigInteger... b)
b
- ignorepublic static BigInteger avgSkip(BigInteger... b)
b
- ignorepublic static boolean eq(BigInteger d1, BigInteger d2)
d1
- ignored2
- ignorepublic static boolean compared(BigInteger d1, BigInteger d2)
d1
- ignored2
- ignorepublic static boolean isNegative(BigInteger d)
d
- ignorepublic static BigInteger abs(BigInteger d)
d
- ignorepublic static boolean isZero(BigInteger d)
d
- ignorepublic static boolean ltZero(BigInteger d)
d
- dpublic static boolean lteZero(BigInteger d)
d
- dpublic static boolean gtZero(BigInteger d)
d
- dpublic static boolean gteZero(BigInteger d)
d
- dCopyright © 2024. All rights reserved.