当前位置:网站首页>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边栏推荐
- Is the soft test intermediate useful??
- 【亲测可行】error while loading shared libraries的解决方案
- Is the gold content of intermediate e-commerce division in the soft exam high?
- MONAI版本更新到 0.9 啦,看看有什么新功能
- Deconstruction and assignment of variables
- 深入理解Apache Hudi异步索引机制
- 软考一般什么时候出成绩呢?在线蹬?
- QT document
- Arduino board description
- 【STM32】实战3.1—用STM32与TB6600驱动器驱动42步进电机(一)
猜你喜欢
Shardingsphere sub database and table examples (logical table, real table, binding table, broadcast table, single table)
PHP \ newline cannot be output
[STM32] actual combat 3.1 - drive 42 stepper motors with STM32 and tb6600 drivers (I)
BUUCTF---Reverse---reverse1
seata 1.3.0 四種模式解决分布式事務(AT、TCC、SAGA、XA)
CAS mechanism
Transaction rolled back because it has been marked as rollback-only解决
Find the root of equation ax^2+bx+c=0 (C language)
Using tansformer to segment three-dimensional abdominal multiple organs -- actual battle of unetr
CSAPP bomb lab parsing
随机推荐
Galaxy Kirin desktop operating system installation postgresql13 (source code installation)
深入理解Apache Hudi异步索引机制
Monai version has been updated to 0.9. See what new functions it has
Schnuka: working principle of robot visual grasping machine visual grasping
Unity script generates configurable files and loads
2022年上半年5月网络工程师试题及答案
[OneNote] can't connect to the network and can't sync the problem
BUUCTF---Reverse---reverse1
Deep understanding of Apache Hudi asynchronous indexing mechanism
"Dream Cup" 2017 Jiangsu information and future primary school summer camp it expert PK program design questions
P2788 math 1 - addition and subtraction
在线硬核工具
2022.7.3DAY595
2022年7月10日“五心公益”活动通知+报名入口(二维码)
Transaction rolled back because it has been marked as rollback only
A simple example of delegate usage
软考中级有用吗??
Mendeley -- a free document management tool that automatically inserts references into papers
The fifth training assignment
Project ERROR: Unknown module(s) in QT: core gui