在编译环境中输入一个小数,会默认为双精度浮点数
如float weight=55.5,会默认55.5为双精度浮点数,所以也可以写成float weight=55.5f.
11-27
5473
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交