当前位置:网站首页>When initializing 'float', what is the difference between converting to 'float' and adding 'f' as a suffix?
When initializing 'float', what is the difference between converting to 'float' and adding 'f' as a suffix?
2022-07-07 11:01:00 【Zafo】
problem :
What is the difference between What's the difference?
float f = (float) 99.32 ;
and and
float f = 99.32f ;
Both of them compiled and ran successfully. They all compiled successfully and ran successfully .
Solution :
Reference resources : https://stackoom.com/en/question/2F9PY边栏推荐
- How to get hardware information in unity
- 1324: [example 6.6] integer interval
- 滚动踩坑--UNI_APP(八)
- Shardingsphere sub database and table examples (logical table, real table, binding table, broadcast table, single table)
- CSAPP bomb lab parsing
- The eighth training assignment
- P1031 [noip2002 improvement group] average Solitaire
- The gun startles the dragon, and the crowd "locks" Zhou Zhi
- Realize ray detection, drag the mouse to move the object and use the pulley to scale the object
- ADB utility commands (network package, log, tuning related)
猜你喜欢
July 10, 2022 "five heart public welfare" activity notice + registration entry (two-dimensional code)
Find the root of equation ax^2+bx+c=0 (C language)
shardingsphere分库分表示例(逻辑表,真实表,绑定表,广播表,单表)
2021-04-23
SQL Server 知识汇集9 : 修改数据
软考中级,软件设计师考试那些内容,考试大纲什么的?
软考一般什么时候出成绩呢?在线蹬?
1321: [example 6.3] deletion problem (noip1994)
[OneNote] can't connect to the network and can't sync the problem
Mysql的json格式查询
随机推荐
[STM32] actual combat 3.1 - drive 42 stepper motors with STM32 and tb6600 drivers (I)
Which securities company is the best and safest to open an account for the subscription of new shares
ThreadLocal is not enough
长列表性能优化方案 memo
Typescript interface inheritance
Ffmpeg record a video command from RTSP
软考信息处理技术员有哪些备考资料与方法?
Deeply understand the characteristics of database transaction isolation
CAS mechanism
Compile QT project script with qmake
2021 summary and 2022 outlook
The fifth training assignment
Rolling puddle Uni_ App (VIII)
Unity downloads files through the server address
The eighth training assignment
Use load_ decathlon_ Datalist (Monai) fast loading JSON data
SQL Server knowledge collection 11: Constraints
How to get hardware information in unity
【OneNote】无法连接到网络,无法同步问题
JS implementation chain call