首页 > TAG信息列表 > 取上

bigDecimal

作用:防止数据偏差 使用注意点:不建议创建对象,还是会有误差,用 BigDecimal.valueOf(a)进行运算运算方法: * add 加法* subtract 减法* multiply 乘法* divide 除法 BigDecimal c1 = a1.divide(b1,2, RoundingMode.HALF_UP); //除法 指定位数,取上   

Go: iota & constant

https://stackoverflow.com/questions/31650192/whats-the-full-name-for-iota-in-golang   一个常量块中,一个常量没有赋值,取上个常量的值     iota从0开始,每行++         不推荐使用iota