摘要: 在工作中经常会遇到对金额的处理,这里整理下关于Decimal的数据进位方法 RoundingMode.UP 定义:远离零方向舍入。 解释:始终对非零舍弃部分前面的数字加 1。注意,此舍入模式始终不会减少计算值的绝对值。 1 BigDecimal data1=new BigDecimal("2.225 阅读全文
posted @ 2020-10-20 17:40 生命树gyh 阅读(349) 评论(0) 推荐(0) 编辑
摘要: The Java Language Specification recommends listing modifiers in the following order: 1. Annotations 2. public 3. protected 4. private 5. abstract 6. s 阅读全文
posted @ 2020-10-20 17:08 生命树gyh 阅读(146) 评论(0) 推荐(0) 编辑
© 2020 GitHub, Inc.