当前位置:网站首页>1e3是浮点数?
1e3是浮点数?
2022-07-28 20:56:00 【老赵的博客】
1. 做项目时,遇到这么个问题
QDataStream out(m_caliFile);
out << m_sigGenMark<< (int)(1e3*m_amplitudeRatio) << m_freVec[m_sigGenMark]
<< m_freVec[m_sigGenMark] << m_setAngle ;其中m_setAngle 是int 型数据,后边我乘以1e3,后边发现数据结构多了四个字节,原来1e3是浮点数类型。
2. 还有个现象是QDataStream的数据是大端模式二进制数据,读取数据时注意。
边栏推荐
- 二进制的原码、反码、补码
- 776. 字符串移位包含问题
- flask之蓝图 补充openpyxl
- Stm32subeide (10) -- ADC scans multiple channels in DMA mode
- STM32 - advanced control timer (time base unit, functional block diagram, input, capture, output, open circuit)
- 《结构学》介绍
- STM32CUBEIDE(10)----ADC在DMA模式下扫描多个通道
- Imx6q GPIO multiplexing
- Idea generate class diagram plug-in UML (super detailed)
- Baidu map usage
猜你喜欢

基于Ernie-3.0 CAIL2019法研杯要素识别多标签分类任务

How to install WiFi correctly

STM32 - memory, I2C protocol

The blueprint of flask complements openpyxl

Stm32subeide (10) -- ADC scans multiple channels in DMA mode

Anomaly detection summary: intensity_ based/Normalizing Flow

Qt+ffmpeg environment construction

STM32 - Communication

Att & CK Threat Intelligence

简单的es高亮实战
随机推荐
微信小程序剪切图片的功能
STM32CUBEIDE(10)----ADC在DMA模式下扫描多个通道
ES6, deep copy, shallow copy
《结构学》介绍
AWK空行过滤
6K6w5LiA5qyh5pS75Ye75YiG5p6Q
MySQL command (add, delete, check and modify)
NPM switch Taobao source (NPM source)
STM32 - Basic timer (tim6, tim7) working process, interpretation function block diagram, timing analysis, cycle calculation
JSON file to PNG image (batch conversion / image naming / migration / pixel value change) [tips]
Use REM to make the font size adaptive to the screen
6K6w5LiA5qyh5pS75Ye75YiG5p6Q
Kali source solution software cannot be installed correctly
776. 字符串移位包含问题
Mysql8.0 cannot authorize users or prompt you are not allowed to create a user with grant
Stm32+ four pin OLED screen + Chinese character mold taking
What to do after mathematical modeling gets the competition problem and some ("crooked ways") tips - must see before the competition
使用PCL批量将点云.bin文件转.pcd
[get mobile information] - get mobile information through ADB command
Baidu map usage