程序包 dev.utils.common

类 BigDecimalUtils.Config

  • 封闭类:
    BigDecimalUtils

    public static final class BigDecimalUtils.Config
    extends java.lang.Object
    detail: 配置信息
    作者:
    Ttt
    • 构造器概要

      构造器 
      构造器 说明
      Config()  
      Config​(int scale, int roundingMode)
      初始化小数点保留位数、舍入模式
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      int getRoundingMode()
      获取舍入模式
      int getScale()
      获取小数点保留位数
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 构造器详细资料

      • Config

        public Config()
      • Config

        public Config​(int scale,
                      int roundingMode)
        初始化小数点保留位数、舍入模式
        参数:
        scale - 小数点保留位数
        roundingMode - 舍入模式
    • 方法详细资料

      • getScale

        public int getScale()
        获取小数点保留位数
        返回:
        小数点保留位数
      • getRoundingMode

        public int getRoundingMode()
        获取舍入模式
        返回:
        舍入模式