分转元
BigDecimal.valueOf(Long.valueOf(price)).divide(new BigDecimal(100)).toString();
元转分
DecimalFormat df = new DecimalFormat("0.00");
price = Double.valueOf(df.format(price));
int money = (int)(price * 100);
分转元
BigDecimal.valueOf(Long.valueOf(price)).divide(new BigDecimal(100)).toString();
元转分
DecimalFormat df = new DecimalFormat("0.00");
price = Double.valueOf(df.format(price));
int money = (int)(price * 100);