关于Java的 long,float 类型

发现了这么一个坑:

1.2f+3.4f=4.6000001430511475
1.2d+3.4d=4.6


posted @ 2020-08-12 12:48  岁月无言成追忆  阅读(344)  评论(0编辑  收藏  举报