Search found 3 matches

by espleon
Tue Jun 18, 2024 3:14 am
Forum: ESP IoT Solution 中文讨论版
Topic: 如何关闭ESP32-S3中的FPU浮点数计算单元
Replies: 2
Views: 9155

Re: 如何关闭ESP32-S3中的FPU浮点数计算单元

浮点数在esp32s3中就是有问题,浮点数的精度会出现严重不满足,基本只有前几位有效数字是准确的,慎用啊,坑
by espleon
Tue Jun 18, 2024 3:05 am
Forum: General Discussion
Topic: How float be handle in esp32s3
Replies: 0
Views: 803

How float be handle in esp32s3

when I test modbus rtu slave eample in esp32s3, I found the float have stronge problem. I set the holding_reg_params.holding_data0 = 1000.213 in code, it is a float nubmer, then I read this number use modbus poll by computer but I get the nubmer is 1003.36. and I test a group of numbers, find that t...
by espleon
Mon Jun 17, 2024 3:11 am
Forum: 全国大学生物联网设计竞赛乐鑫答疑专区
Topic: 官方例程 modbus slave rtu, 浮点数精度不对
Replies: 0
Views: 5327

官方例程 modbus slave rtu, 浮点数精度不对

官方例程 modbus slave rtu, 浮点数精度不对,对保持寄存器设置一个浮点数,读取到的浮点数结果精度只能到小数点后两位,根本无法使用,用的是idf 5.1.2版本,开发环境是vscode。