java把含小数点的数字字符串转换为int类型

String num ="1.00";

int abc =Double.valueOf(num).intValue();//转换为Int类型

猜你喜欢

转载自www.cnblogs.com/alter888/p/9765653.html