Java 函数

BigDecimal cs = new BigDecimal(12.123456);
BigDecimal bl = new BigDecimal(54);
BigDecimal rbonus = bonus.multiply(rat).divide(new BigDecimal(100), 2, BigDecimal.ROUND_FLOOR);
rbonus.doubleValue()

SimpleDateFormat format = new SimpleDateFormat("yyyyMMddHHmmss");
Long curTime = System.currentTimeMillis();
Long beforeTime = (curTime/1000L-3600)*1000L;
String begin = format.format(beforeTime);
String end = format.format(curTime);

你可能感兴趣的:(Java 函数)