摘要:
Math.ceil,Math.round,Math.floor区别 //向上取整 System.out.println("amt1=" + Math.ceil(71.01)); //四舍五入 System.out.println("amt2=" + Math.round(71.01)); //向下取 阅读全文
posted @ 2023-04-22 11:43
oktokeep
阅读(37)
评论(0)
推荐(0)
摘要:
Java编码规范-字符串与Integer的比较,BigDecimal非空参数 package com.example.core.mydemo; import java.math.BigDecimal; public class IntTest { public static void main(St 阅读全文
posted @ 2023-04-22 11:41
oktokeep
阅读(60)
评论(1)
推荐(0)
浙公网安备 33010602011771号