double类型转为Double:
new Double(invoicePrice*100).longValue()
转为两位小数
DecimalFormat df=new DecimalFormat(".##");double d=1252.2563;String st=df.format(d);