当前位置:网站首页>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边栏推荐
- A case of compiling QT file qmake compiling script
- 2022.7.3DAY595
- BUUCTF---Reverse---reverse1
- [installation system] U disk installation system tutorial, using UltraISO to make U disk startup disk
- Network engineer test questions and answers in May of the first half of 2022
- 單調性約束與反單調性約束的區別 monotonicity and anti-monotonicity constraint
- [pro test feasible] error while loading shared libraries solution
- Static semantic check of clang tidy in cicd
- 变量的解构赋值
- 香橙派OrangePi 4 LTS开发板通过Mini PCIE连接SATA硬盘的操作方法
猜你喜欢
Unity script visualization about layout code
Mpx 插件
Transaction rolled back because it has been marked as rollback-only解决
2021-04-08
[pyqt] the cellwidget in tablewidget uses signal and slot mechanism
CSAPP bomb lab parsing
"Dream Cup" 2017 Jiangsu information and future primary school summer camp it expert PK program design questions
在线硬核工具
What are the test preparation materials and methods for soft exam information processing technicians?
[actual combat] transformer architecture of the major medical segmentation challenges on the list --nnformer
随机推荐
2022.7.4DAY596
Rolling puddle Uni_ App (VIII)
Use of dotween
Arduino board description
Idea shortcut keys
1323: [example 6.5] activity selection
Shardingsphere sub database and table examples (logical table, real table, binding table, broadcast table, single table)
Deconstruction and assignment of variables
ThreadLocal is not enough
Network engineer test questions and answers in May of the first half of 2022
P1223 queuing for water /1319: [example 6.1] queuing for water
[recommendation system 01] rechub
Static semantic check of clang tidy in cicd
软考一般什么时候出成绩呢?在线蹬?
【亲测可行】error while loading shared libraries的解决方案
Get pictures through opencv, change channels and save them
简单易修改的弹框组件
QT document
Qtcreator sets multiple qmake
[pro test feasible] error while loading shared libraries solution