double a = 345.0; Object b = a; NumberFormat n=NumberFormat.getInstance(); n.setParseIntegerOnly(true); String d=n.format(b); long c = Long.parseLong(d);
double a = 345.0; Object b = a; NumberFormat n=NumberFormat.getInstance(); n.setParseIntegerOnly(true); String d=n.format(b); long c = Long.parseLong(d);
转载于:https://www.cnblogs.com/liuxiuhao/archive/2012/12/07/2807014.html