0 purchases
decimal precisions
精度计算工具 #
处理不同情况下的精度计算 #
enum Type {
rounding, //四舍五入
tailRemoval, //去尾
enter, //逢N进1
}
使用:
输入的具体数值(支持小数和整数)number
进制类型 type
保留小数位数 digit
在类型为enter的时候 大于等于value进1 value
PrecisionsUtil.getPrecisionsDouble(number: number,type: Type.enter,digit: digit,value:value);
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.