java四舍五入BigDecimal java四舍五入package Test;import java.math.BigDecimal; //引入这个包public class Test { public static void main(String[] args) { double i = 3.856; // 舍掉小数取整 System.out.println("舍掉小数取整: j2se 2023-06-09 55 点赞 0 评论 83 浏览