..\HARDWARE\INA226\INA226.c(140): warning: #1035-D: single-precision operand implicitly converted to double-precision
时间: 2024-02-03 12:32:53 浏览: 84
计算机精度问题(Double)
回答: 这个警告是由于单精度操作数隐式转换为双精度操作数导致的。在使用STM32F4时,编译器会提示这个警告。解决这个问题的方法有两种。一种是在所有的浮点数字后面加上f,这样编译器就会将其识别为单精度数值,警告就会消失。另一种方法是关闭Target->Floating point Hardware选项。这样可以避免警告,但需要注意关闭该选项可能会影响浮点运算的精度。\[1\]\[2\]\[3\]
#### 引用[.reference_title]
- *1* *3* [keil MDK使用过程中遇到的问题及解决办法(更新)](https://blog.csdn.net/xiaoyuanwuhui/article/details/89134467)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [keil5编写stm32代码:提示single-precision operand implicity converted to double-precesion](https://blog.csdn.net/junyilao/article/details/80054550)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文