Indi
hanjm's Blog imhanjm.com

1 浮点数为什么不精确 先看两个case // case1: 135.90*100 ==== // float32 var f1 float32 = 135.90 fmt.Println(f1 * 100 ) // output:13589.999 // float64 var f2 float64 = 135.90 fmt.Println(f2 * 100 ) // output:13590 浮…

讨论

还没有评论,来说第一句吧。

hanjm's Blog 的其他文章