1万
7万
11万
管理员
使用道具 举报
2
33
39
新手上路
xiashuang 发表于 2020-3-29 17:37 实际用MDK发现除数为0不用考虑这个问题,实测STM32F4/F3/F1没问题,F0不行
15
175
235
高级会员
WZH 发表于 2023-10-9 11:00 #define UTILS_IS_NAN(x) ((x) != (x)) #define UTILS_NAN_ZERO(x) (x = UTILS_IS_NAN(x) ? 0.0 : x) 可 ...
218
1106
1770
至尊会员
More we do, more we can do.
emwin 发表于 2023-10-10 09:42 想复杂了,value != 0.0f 就可以了。 Floating Point to Hex Converter (gregstoll.com)
28
23
107
初级会员
本版积分规则 发表回复 回帖后跳转到最后一页
|小黑屋|Archiver|手机版|硬汉嵌入式论坛
GMT+8, 2025-5-15 10:30 , Processed in 0.289175 second(s), 27 queries .
Powered by Discuz! X3.4 Licensed
Copyright © 2001-2023, Tencent Cloud.