Java_BigInteger

字段摘要 
static BigInteger ONE 
          BigInteger 的常量 

1。 
static BigInteger TEN 
          BigInteger 的常量 10。 
static BigInteger ZERO 
          BigInteger 的常量 0。 
构造方法摘要 
BigInteger(byte[] val) 
          将包含 BigInteger 的二进制补码表示形式的 byte 数组转换为 BigInteger。 
BigInteger(int signum, byte[] magnitude) 
          将 BigInteger 的符号-数量表示形式转换为 BigInteger。 
BigInteger(int bitLength, int certainty, Random rnd) 
          构造一个随机生成的正 BigInteger,它可能是一个具有指定 bitLength 的素数。 
BigInteger(int numBits, Random rnd) 
          构造一个随机生成的 BigInteger,它是在 到 (2numBits - 1)(包括)范围内均匀分布的值。 
BigInteger(String val) 
          将 BigInteger 的十进制字符串表示形式转换为 BigInteger。 
BigInteger(String val, int radix) 
          将指定基数的 BigInteger 的字符串表示形式转换为 BigInteger。 
方法摘要 
 BigInteger abs() 
          返回其值是此 BigInteger 的绝对值的 BigInteger。 
 BigInteger add(BigInteger val) 
          返回其值为 (this + val) 的 BigInteger。 
 BigInteger and(BigInteger val) 
          返回其值为 (this & val) 的 BigInteger。 
 BigInteger andNot(BigInteger val) 
          返回其值为 (this & ~val) 的 BigInteger。 
 int bitCount() 
          返回此 BigInteger 的二进制补码表示形式中与符号不同的位的数量。 
 int bitLength() 
          返回此 BigInteger 的最小的二进制补码表示形式的位数,不包括 符号位。 
 BigInteger clearBit(int n) 
          返回其值与清除了指定位的此 BigInteger 等效的 BigInteger。 
 int compareTo(BigInteger val) 
          将此 BigInteger 与指定的 BigInteger 进行比较。 
 BigInteger divide(BigInteger val) 
          返回其值为 (this / val) 的 BigInteger。 
 BigInteger[] divideAndRemainder(BigInteger val) 
          返回包含 (this / val) 后跟 (this % val) 的两个 BigInteger 的数组。 
 double doubleValue() 
          将此 BigInteger 转换为 double。 
 boolean equals(Object x) 
          比较此 BigInteger 与指定的 Object 的相等性。 
 BigInteger flipBit(int n) 
          返回其值与对此 BigInteger 进行指定位翻转后的值等效的 BigInteger。 
 float floatValue() 
          将此 BigInteger 转换为 float。 
 BigInteger gcd(BigInteger val) 
          返回一个 BigInteger,其值是 abs(this) 和 abs(val) 的最大公约数。 
 int getLowestSetBit() 
          返回此 BigInteger 最右端(最低位)比特的索引(即从此字节的右端开始到本字节中最右端 比特之间的 比特的位数)。 
 int hashCode() 
          返回此 BigInteger 的哈希码。 
 int intValue() 
          将此 BigInteger 转换为 int。 
 boolean isProbablePrime(int certainty) 
          如果此 BigInteger 可能为素数,则返回 true,如果它一定为合数,则返回 false。 
 long longValue() 
          将此 BigInteger 转换为 long。 
 BigInteger max(BigInteger val) 
          返回此 BigInteger 和 val 的最大值。 
 BigInteger min(BigInteger val) 
          返回此 BigInteger 和 val 的最小值。 
 BigInteger mod(BigInteger m) 
          返回其值为 (this mod m) 的 BigInteger。 
 BigInteger modInverse(BigInteger m) 
          返回其值为 (this-1 mod m) 的 BigInteger。 
 BigInteger modPow(BigInteger exponent, BigInteger m) 
          返回其值为 (thisexponent mod m) 的 BigInteger。 
 BigInteger multiply(BigInteger val) 
          返回其值为 (this * val) 的 BigInteger。 
 BigInteger negate() 
          返回其值是 (-this) 的 BigInteger。 
 BigInteger nextProbablePrime() 
          返回大于此 BigInteger 的可能为素数的第一个整数。 
 BigInteger not() 
          返回其值为 (~this) 的 BigInteger。 
 BigInteger or(BigInteger val) 
          返回其值为 (this | val) 的 BigInteger。 
 BigInteger pow(int exponent) 
          返回其值为 (thisexponent) 的 BigInteger。 
static BigInteger probablePrime(int bitLength, Random rnd) 
          返回有可能是素数的、具有指定长度的正 BigInteger。 
 BigInteger remainder(BigInteger val) 
          返回其值为 (this % val) 的 BigInteger。 
 BigInteger setBit(int n) 
          返回其值与设置了指定位的此 BigInteger 等效的 BigInteger。 
 BigInteger shiftLeft(int n) 
          返回其值为 (this << n) 的 BigInteger。 
 BigInteger shiftRight(int n) 
          返回其值为 (this >> n) 的 BigInteger。 
 int signum() 
          返回此 BigInteger 的正负号函数。 
 BigInteger subtract(BigInteger val) 
          返回其值为 (this - val) 的 BigInteger。 
 boolean testBit(int n) 
          当且仅当设置了指定的位时,返回 true。 
 byte[] toByteArray() 
          返回一个 byte 数组,该数组包含此 BigInteger 的二进制补码表示形式。 
 String toString() 
          返回此 BigInteger 的十进制字符串表示形式。 
 String toString(int radix) 
          返回此 BigInteger 的给定基数的字符串表示形式。 
static BigInteger valueOf(long val) 
          返回其值等于指定 long 的值的 BigInteger。 
 BigInteger xor(BigInteger val) 
          返回其值为 (this ^ val) 的 BigInteger。 
  
 

转载于:https://www.cnblogs.com/zjushuiping/archive/2012/05/31/2528194.html

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/548456.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

Bootstrap模态框显示时有阴影遮罩层

如下图所示&#xff1a; 有遮罩层在&#xff0c;无法进行任何操作&#xff0c;只需修改默认 z-index 属性即可&#xff1a; .modal-backdrop{z-index:0;}

windows 如何在Windows命令行下配置IP地址

有时候系统发生问题&#xff0c;网络连接中看不到本地连接&#xff0c;网卡工作还是正常的。这样一来却没有办法修改本地的IP地址了。因为通常都是在本地连接属性中修改IP的&#xff0c;但现在本地连接已经看不到了&#xff0c;在命令行下用IPconfig可以查看IP地址&#xff0c;…

JQuery Datatables 在Bootstrap tab中列名无法对齐的问题

如下图所示&#xff1a; 增加一句代码即可&#xff1a; $(a[data-toggle"tab"]).on(shown.bs.tab, function (e) {//当切换tab时&#xff0c;强制重新计算列宽$.fn.dataTable.tables({ visible: true, api: true }).columns.adjust();});

C# 值类型与引用类型(1)

1. 主要内容 类型的基本概念 值类型深入 引用类型深入 值类型与引用类型的比较及应用 2. 基本概念 C#中&#xff0c;变量是值还是引用仅取决于其数据类型。 C#的基本数据类型都以平台无关的方式来定义&#xff0c;C#的预定义类型并没有内置于语言中&#xff0c;而是内置于.NET …

Bootstrap-select使用说明

背景 Bootstrap-select 是一款基于JQuery的 下拉菜单 插件&#xff0c;支持搜索和多项选择功能&#xff0c;支持Booststrap。 点击这里进入Bootstrap-select中文官方网站 使用效果如下图所示&#xff1a; 常用属性 初始化&#xff1a; <select class"selectpicker…

前端插件——Bootstrap Dual Listbox 简介

背景 Bootstrap Dual Listbox是一款基于Bootstrap的双向select选择框控件&#xff0c;作为对multiple select的扩展&#xff0c;使用起来非常简单&#xff0c;功能也更强大。 参考文章一 参考文章二 使用效果如下图所示&#xff1a; 初始化HTML代码&#xff1a; <div cla…

Fork()概念

对于刚刚接触Unix/Linux操作系统&#xff0c;在Linux下编写多进程的人来说&#xff0c;fork是最难理解的概念之一&#xff1a;它执行一次却返回两个值。 首先我们来看下fork函数的原型&#xff1a; &#xff03;i nclude <sys/types.h> &#xff03;i nclude <unistd.…

EF中报错:附加类型“xxxx”的实体失败,因为相同类型的其他实体已具有相同的主键值。

报错全文&#xff1a; 附加类型“Model.DepartProduct”的实体失败&#xff0c;因为相同类型的其他实体已具有相同的主键值。在使用 "Attach" 方法或者将实体的状态设置为 "Unchanged" 或 "Modified" 时如果图形中的任何实体具有冲突键值&#…

Nsis打包exe

2019独角兽企业重金招聘Python工程师标准>>> 这里用nsis的eclipse插件来打包exe。插件地址&#xff1a;http://eclipsensis.sf.net/update 安装完毕之后创建一个java程序&#xff0c;导出一个可执行的jar文件&#xff0c;名字JavaApp.jar。现在开始准备打包制作安装…

Bootstrap 幻灯片效果

<!--轮播图--><div class"container"><div class"carousel slide" id"slidershow" data-ride"carousel" data-interval"2000" style"margin-top:70px"><!--计数器--><ol class"c…

lightbox自定义图片大小的实现

lightbox的功能非常强大&#xff0c;但是lightbox有个很不人性话的地方就是不能自定义弹出层图片的大小&#xff08;也许是我自己不会用吧&#xff09; 切入正题 打开lightbox.js 设定两个变量 var lbxMaxWidth 600;//弹出层最大宽度&#xff0c;var lbxMaxHeight 500;//弹出…

JS判断数字类型

第一种方法 isNaN isNaN&#xff1a;返回一个 Boolean 值&#xff0c;指明提供的值是否是保留值 NaN &#xff08;不是数字&#xff09;&#xff0c;NaN 即 Not a Number。 isNaN(numValue) 第二种方法 正则表达式 function checkRate(input) { var re /^[0-9].?[0-9]*/;//…

asp.net网页中导出EXCEL,WORD的环境设置验证实例

最近公司的业务服务器需要配置导出EXCEL,WORD的环境。程序是由其它公司开发的&#xff0c;这个环境的配置真的不好弄。会出现类似 检索 COM 类工厂中 CLSID 为{00024500-0000-0000-C000-000000000046} 的组件时失败&#xff0c;原因是出现以下错误: 80070005。 网上的解决方法都…

JQuery Datatables —— 自定义导出列

在datatables中&#xff0c;如何选择性的导出那些指定的列&#xff0c; 点击这里查看官网文档&#xff0c;只要配置一个属性并设置列索引即可&#xff0c;具体代码如下图所示&#xff1a; buttons: [{extend: excel,className: btn btn-primary,filename: "导出",ex…

借助波音公司打造优秀按单制造(MTO II)管理系统

博主推荐延展咨询资深顾问王晓东文章近些年随着市场竞争的加剧&#xff0c;制造业产业链越来越关注客户的需求&#xff0c;针对客户个性化需求的按单制造&#xff08;MTO II&#xff09;生产模式在我国企业不断得到应用。按单制造&#xff08;MTO II&#xff09;企业在组织生产…

MyEclipes 设置代码自动提示

一、Window ——> Preferences 二、Java ——> Editor ——> Content Assist 三、更改内容为 【.qwertyuiopasdfghjklzxcvbnm 】&#xff0c;完成。

jQuery-input输入框下拉提示层

效果图 代码部分 // JavaScript Document (function($){$.fn.extend({"changeTips":function(value){value $.extend({divTip:""},value)var $this $(this);var indexLi 0;//点击document隐藏下拉层$(document).click(function(event){if($(event.targe…

MyEclipes 2016 CI 6 安装

一、双击安装包&#xff0c;打开&#xff0c;点击“Next” 二、 同意&#xff0c;Next 三、选择安装路径&#xff0c;然后点击Next 四、选择32位或者是64位后&#xff0c;点击Next开始安装。 五、去掉立即运行这个勾&#xff0c;点击完成。 六、找到破解目录文件&#xff0c;全…

netapp存储常用命令

cf status #检查Cluster功能的当前状态 cf enable/disable #启用禁用cluster cf takeover #cluster强制接管&#xff0c;partner在接管模式下切换到partner管理界面 cf giveback #在接管模式下,将服务返回给原节点 cifs shares #查看CIFS共享信息 df –Ag #查看存储所建组的…

Java的中排序方式

实体类&#xff1a; public class Person {public String getCode() {return code;}public void setCode(String code) {this.code code;}public String getName() {return name;}public void setName(String name) {this.name name;}public int getAge() {return age;}publi…