0 purchases
toman common
flutter_toman_common #
flutter_toman_common
flutter 项目 基础组件封装 #
precisionsUtil 精度计算工具
处理不同情况下的精度计算, 1.四舍五入 2.去尾 3.逢N进1
enum Type {
rounding, //四舍五入
tailRemoval, //去尾
enter, //逢N进1
}
使用:
//小数进制 type 进制类型 digit 保留小数位数 value逢N进1
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.