摘要:
double result = new BigDecimal((float)1234 / 3456).setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue(); 阅读全文
posted @ 2020-08-26 23:44
二先森
阅读(212)
评论(0)
推荐(0)
摘要:
public static List<String> calTimeFormat() { int i =0; Calendar ca = Calendar.getInstance();//得到一个Calendar的实例 List<String> timeList = new ArrayList<>( 阅读全文
posted @ 2020-08-26 23:43
二先森
阅读(127)
评论(0)
推荐(0)
摘要:
public static BigDecimal getRandomFloat() { float Max = 100, Min = 95; BigDecimal bd = new BigDecimal(Math.random() * (Max - Min) + Min); return bd.se 阅读全文
posted @ 2020-08-26 23:41
二先森
阅读(175)
评论(0)
推荐(0)

浙公网安备 33010602011771号