当前位置:网站首页>The accuracy of float
The accuracy of float
2022-07-24 22:28:00 【ima_ zhan】
I found an interesting problem today , use float.Parse("-0.03"); Got float The type data is -0.03, But take 100 Assign a value to an integer and it becomes -2.
float fval = float.Parse("-0.03");
int ival = (int)(fval*100);
If you use double Is no problem . stay 64 Bit win7 There is no problem on the system .
边栏推荐
- General syntax and classification of SQL language (II)
- Available parameters of ansible Playbook
- 头脑风暴之——利用reduce方法重构concat函数
- [Apipost和Apifox哪个更好用?看这篇就够了!]
- Leetcode 101. symmetric binary tree
- Brainstorming -- using reduce method to reconstruct concat function
- Boundary extraction of PCL point cloud processing (58)
- Ranking of engineering project management software
- Shallow copy deep copy
- Helm -- a powerful package management tool for kubernetes applications
猜你喜欢
![洛谷 P2024 [NOI2001] 食物链](/img/7f/6ccbc19942f0d4a153025346496834.png)
洛谷 P2024 [NOI2001] 食物链

Segment tree,,

Time series data in industrial Internet of things

Violent recursion - detailed explanation of Queen n & how to optimize with bit operation

Multi task face attribute analysis based on deep learning (based on paddlepaddle)

CAD text styles

Local data enhancement method of icml2022 | graph neural network

Uniform sampling and thinning of PCL point cloud processing (61)

CAD copy commands
![[icml2022] climate change and machine learning: opportunities, challenges and considerations, 121 ppt](/img/be/6a3f53070c2ffc9610a77d4e910f91.png)
[icml2022] climate change and machine learning: opportunities, challenges and considerations, 121 ppt
随机推荐
Violent recursion - detailed explanation of Queen n & how to optimize with bit operation
【数据库学习】Redis 解析器&&单线程&&模型
Gradle learning - getting started with gradle
One click compilation and installation of redis6.2.4
"Fundamentals of program design" Chapter 10 function and program structure 6-13 divide and conquer method to solve the gold bullion problem (20 points)
SVM——针对线性可分(下)
通过企业微信自建应用向微信推送信息
Which is the best interface documentation tool at home and abroad?
从暴力递归到动态规划,记忆化搜索
PCL点云处理之移动最小二乘拟合实验(六十二)
Plane regularization of PCL point cloud processing (55)
Visual studio input! No prompt
PCL point cloud processing ply file reading and saving (54)
Integrated swagger learning
Joint search set structure
Push information to wechat through enterprise wechat self built application
Leetcode 226. flip binary tree
Archsummit: evolution of the underlying framework of cherished microservices
Morris遍历
Monotonic stack structure