大数处理 JAVA

java.math
类 BigInteger

java.lang.Object
  java.lang.Number
      java.math.BigInteger
所有已实现的接口:
Serializable, Comparable<BigInteger>

 
 
方法摘要
 BigIntegerabs()            返回其值是此 BigInteger 的绝对值的 BigInteger。
 BigIntegeradd(BigInteger val)            返回其值为 (this + val) 的 BigInteger。
 BigIntegerand(BigInteger val)            返回其值为 (this & val) 的 BigInteger。
 BigIntegerandNot(BigInteger val)            返回其值为 (this & ~val) 的 BigInteger。
 intbitCount()            返回此 BigInteger 的二进制补码表示形式中与符号不同的位的数量。
 intbitLength()            返回此 BigInteger 的最小的二进制补码表示形式的位数,不包括 符号位。
 BigIntegerclearBit(int n)            返回其值与清除了指定位的此 BigInteger 等效的 BigInteger。
 intcompareTo(BigInteger val)            将此 BigInteger 与指定的 BigInteger 进行比较。
 BigIntegerdivide(BigInteger val)            返回其值为 (this / val) 的 BigInteger。
 BigInteger[]divideAndRemainder(BigInteger val)            返回包含 (this / val) 后跟 (this % val) 的两个 BigInteger 的数组。
 doubledoubleValue()            将此 BigInteger 转换为 double
 booleanequals(Object x)            比较此 BigInteger 与指定的 Object 的相等性。
 BigIntegerflipBit(int n)            返回其值与对此 BigInteger 进行指定位翻转后的值等效的 BigInteger。
 floatfloatValue()            将此 BigInteger 转换为 float
 BigIntegergcd(BigInteger val)            返回一个 BigInteger,其值是 abs(this) 和 abs(val) 的最大公约数。
 intgetLowestSetBit()            返回此 BigInteger 最右端(最低位)1 比特的索引(即从此字节的右端开始到本字节中最右端 1 比特之间的 0 比特的位数)。
 inthashCode()            返回此 BigInteger 的哈希码。
 intintValue()            将此 BigInteger 转换为 int
 booleanisProbablePrime(int certainty)            如果此 BigInteger 可能为素数,则返回 true,如果它一定为合数,则返回 false
 longlongValue()            将此 BigInteger 转换为 long
 BigIntegermax(BigInteger val)            返回此 BigInteger 和 val 的最大值。
 BigIntegermin(BigInteger val)            返回此 BigInteger 和 val 的最小值。
 BigIntegermod(BigInteger m)            返回其值为 (this mod m) 的 BigInteger。
 BigIntegermodInverse(BigInteger m)            返回其值为 (this-1 mod m) 的 BigInteger。
 BigIntegermodPow(BigInteger exponent, BigInteger m)            返回其值为 (thisexponent mod m) 的 BigInteger。
 BigIntegermultiply(BigInteger val)            返回其值为 (this * val) 的 BigInteger。
 BigIntegernegate()            返回其值是 (-this) 的 BigInteger。
 BigIntegernextProbablePrime()            返回大于此 BigInteger 的可能为素数的第一个整数。
 BigIntegernot()            返回其值为 (~this) 的 BigInteger。
 BigIntegeror(BigInteger val)            返回其值为 (this | val) 的 BigInteger。
 BigIntegerpow(int exponent)            返回其值为 (thisexponent) 的 BigInteger。
static BigIntegerprobablePrime(int bitLength, Random rnd)            返回有可能是素数的、具有指定长度的正 BigInteger。
 BigIntegerremainder(BigInteger val)            返回其值为 (this % val) 的 BigInteger。
 BigIntegersetBit(int n)            返回其值与设置了指定位的此 BigInteger 等效的 BigInteger。
 BigIntegershiftLeft(int n)            返回其值为 (this << n) 的 BigInteger。
 BigIntegershiftRight(int n)            返回其值为 (this >> n) 的 BigInteger。
 intsignum()            返回此 BigInteger 的正负号函数。
 BigIntegersubtract(BigInteger val)            返回其值为 (this - val) 的 BigInteger。
 booleantestBit(int n)            当且仅当设置了指定的位时,返回 true
 byte[]toByteArray()            返回一个 byte 数组,该数组包含此 BigInteger 的二进制补码表示形式。
 StringtoString()            返回此 BigInteger 的十进制字符串表示形式。
 StringtoString(int radix)            返回此 BigInteger 的给定基数的字符串表示形式。
static BigIntegervalueOf(long val)            返回其值等于指定 long 的值的 BigInteger。
 BigIntegerxor(BigInteger val)            返回其值为 (this ^ val) 的 BigInteger。
 
从类 java.lang.Number 继承的方法
byteValue, shortValue
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
YOLO高分设计资源源码,详情请查看资源内容中使用说明 YOLO高分设计资源源码,详情请查看资源内容中使用说明 YOLO高分设计资源源码,详情请查看资源内容中使用说明 YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值