当前位置:网站首页>基础数据之double和float区别
基础数据之double和float区别
2022-08-11 05:13:00 【SunForYou】
测试用例:
public static void main(String[] args) {
Object[]strings = new Object[]{2.555555555555555555,2.555555555555555555f};}
可以发现
Param first 2.555555555555554 (16位) double
Param second 2.5555556 (7位) float
double类型消耗内存是float的两倍
double类型比float运算速度慢得多
边栏推荐
- 金仓数据库 KingbaseGIS 使用手册(6.8. 几何对象输入函数)
- 阿里云无法远程连接数据库MySQL错误码10060解决办法_转载
- Oracle中如何用一个表的数据更新另一个表中的数据_转载
- 课堂练习--0708
- Switch and Router Technology-27-OSPF Route Redistribution
- 让你代码越来越高大上的技巧——代码规范,你得知道
- Smart Pointer Notes
- The use of async (asynchronous) and await
- HAVE FUN | “SOFA 星球”飞船计划、源码解析活动最新进展
- CentOS卸载Oracle 11gR2(x64)_转载
猜你喜欢
随机推荐
nodes服务器
HAVE FUN | "SOFA Planet" spacecraft plan, the latest progress of source code analysis activities
C语言:实用调试技巧
代理模式(简要介绍)
Use Adobe genuine software for prostitution to reduce the slow employment and non-employment of fresh graduates
让你代码越来越高大上的技巧——代码规范,你得知道
Oracle中如何用一个表的数据更新另一个表中的数据_转载
@Resource和@Autowired的区别
for循环使用多线程优化
UML基本概念——动态视图
pip 国内源下载
prometheus:(二)监控概述(你永远逃不出我的手掌哈哈)
[Embedded open source library] The use of cJSON, an efficient and streamlined json parsing library
How to use svg-icon (svg-sprite-loader plugin)
Weekly recommended short video: your commonly used Polaroid, its predecessor turned out to be like this!
CentOS7静默安装Oracle11g_转载
How to read a paper
2022 building welder (building a special type of work) examination questions and simulation test
Redis详解
Trilium使用总结









![[ARM] rk3399 mounts nfs error](/img/0c/f9f0a2f3850cd55d8bebbee7f898de.png)