java.lang.NumberFormatException: For input string: "26.0"

数据类型转化的时候的错误:

程序中要转的字符串不是一个数字,所以在format成数字的时候就出错了。    字符串不符合数字预定格式。

原文地址:https://www.cnblogs.com/lishupeng/p/4898207.html