zoukankan      html  css  js  c++  java
  • BigInteger

    import java.math.BigInteger;
    /*
     * BigInteger(String val)
              将 BigInteger 的十进制字符串表示形式转换为 BigInteger。
        成员方法:
              BigInteger add(BigInteger val)
              返回其值为 (this + val) 的 BigInteger      
              BigInteger subtract(BigInteger val)
              返回其值为 (this - val) 的 BigInteger。
              BigInteger multiply(BigInteger val)
              返回其值为 (this * val) 的 BigInteger。 
              BigInteger divide(BigInteger val)
              返回其值为 (this / val) 的 BigInteger。
     */
    public class BigIntegerDemo {
     public static void main(String[] args) {
      BigInteger b =new BigInteger("100");
      BigInteger b2 =new BigInteger("100");
      BigInteger b3= b.add(b2);
      System.out.println(b3);
      
     }
    }
  • 相关阅读:
    swift 学习线路
    常用linux命令
    位运算常用技巧
    我的算法练习
    mac 电脑配置cordova
    swift 2中关键字和解释整理
    C# 类
    C# 循环语句 for循环(嵌套 while 穷举 迭代)
    C# 循环语句 for循环
    C# 分支语句
  • 原文地址:https://www.cnblogs.com/rong123/p/9887395.html
Copyright © 2011-2022 走看看