做a暧小视频在线观看网站,怎么做网页链接图片,网页设计培训学校校,网站引流怎么做问题
遇到2个数相除#xff0c;需要保留2位小数的结果。
解决
BigDecimal sum ...;
BigDecimal yearValue ...;MathContext mathContext new MathContext(2, RoundingMode.DOWN);
yearValue.divide(sum, mathContext);问题
遇到2个数相除需要保留2位小数的结果。
解决
BigDecimal sum ...;
BigDecimal yearValue ...;MathContext mathContext new MathContext(2, RoundingMode.DOWN);
yearValue.divide(sum, mathContext);