java.lang.NumberFormatException: Infinite or NaN

1、异常提示: java.lang.NumberFormatException: Infinite or NaN


2、原因:无法格式化的数字,此数字要么不是个数字,要么是无穷大的数字,从而导致 BigDecimal 无法对其解析。



3、解决办法:检查传入到 BigDecimal  的参数是不是数字,或者数字中含有空格。

 

posted @ 2018-05-16 00:43  hapday  阅读(24519)  评论(0编辑  收藏  举报