当前位置:网站首页>Is 1E3 a floating point number?
Is 1E3 a floating point number?
2022-07-28 22:51:00 【Lao Zhao's blog】
1. When doing project , Encountered such a problem
QDataStream out(m_caliFile);
out << m_sigGenMark<< (int)(1e3*m_amplitudeRatio) << m_freVec[m_sigGenMark]
<< m_freVec[m_sigGenMark] << m_setAngle ;among m_setAngle yes int Type data , Then I multiply by 1e3, Later, it is found that the data structure is four bytes more , original 1e3 Is a floating point type .
2. Another phenomenon is QDataStream The data of is big end mode binary data , Pay attention when reading data .
边栏推荐
- 【转载】token令牌在登录场景使用
- Qt+ffmpeg environment construction
- Winserver operation and maintenance technology stack
- ES6, deep copy, shallow copy
- Quadruped robot | gem (elevation map) + fast_ Deployment records of Leo (odometry) environment
- Morphology of image
- 775. 倒排单词
- 842. Arrange numbers
- Pictures are named in batches in order (change size /jpg to PNG) [tips]
- c语言实现字符串逆序排列
猜你喜欢

Lvs+keepalived high availability deployment practical application

Imx6q GPIO multiplexing

The tenth improvement of yolov5: the loss function is improved to Siou

npm run dev,运行项目后自动打开浏览器

Stm32subeide (10) -- ADC scans multiple channels in DMA mode
![Memseg [anomaly detection: embedded based]](/img/10/aea2b6ecf55e04fe24f78e5fb897be.png)
Memseg [anomaly detection: embedded based]

winform跳转第二个窗体案例

How to delete and remove the first row of elements in PHP two-dimensional array

Yolov5 improvement 15: network lightweight method deep separable convolution

STM32CUBEIDE(10)----ADC在DMA模式下扫描多个通道
随机推荐
LTE cell search process and sch/bch design
PHP库neo4j怎么安装及使用
console.log()控制台显示...解决办法
Paddlenlp is based on ernir3.0 text classification. Take the crime prediction task of cail2018-small dataset as an example [multiple tags]
Improvement 16 of yolov5: replace backbone network C3 with lightweight network pp-lcnet
Use the picture name to label the picture [tips]
PC side web page special effects (offset series, obtain the coordinates of the mouse in the box, pop-up drag effect, magnifying glass effect)
Mspba [anomaly detection: representation_based]
STM32 - memory, I2C protocol
JVM——自定义类加载器
776. 字符串移位包含问题
842. Arrange numbers
Solve various problems of sudo rosdep init and rosdep update
STM32 - Basic timer (tim6, tim7) working process, interpretation function block diagram, timing analysis, cycle calculation
775. Inverted words
842. 排列数字
《Shortening passengers’ travel time A dynamic metro train scheduling approach using deep reinforcem》
Labelme labels circular objects [tips]
One of the experience of solving problems with code error reporting: CUDA does not match pytorch
HP ProLiant DL380 boot from USB flash drive, press which key