double类型转为Double:

new Double(invoicePrice*100).longValue()

转为两位小数

DecimalFormat df=new DecimalFormat(".##");
double d=1252.2563;
String st=df.format(d);

相关文章:

  • 2021-12-22
  • 2022-12-23
  • 2022-12-23
  • 2021-07-28
  • 2021-09-28
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-08-01
  • 2022-12-23
  • 2021-11-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案