string directly converted to float or double will lose accuracy problems

Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
This link: https://blog.csdn.net/weixin_43946331/article/details/102729540

string directly converted to float or double will lose precision, it can be converted to BigDecimal

Guess you like

Origin blog.csdn.net/weixin_43946331/article/details/102729540