math.h pow() not working

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

math.h pow() not working

765 次查看
turkmani_11
Contributor III

im working on MPC mcu im using an example project, i tried to include math.h and use pow(), its not showing errors but its not working, it should be highlighted in an other collor and also i should see where its declared when i press on it but it doesnt show it , the library is shown also at the includes of the project can you please help me 

turkmani_11_0-1666271363971.png

 

 

 

0 项奖励
回复
2 回复数

641 次查看
jiri_kral
NXP Employee
NXP Employee

Hi, 

can you please specify what's is not working on pow() function? There is wrong value or why you think that it is not working? 

 

Anyway - the pow() function is returning double by default. Also using pow() for left bit shifting is kind of odd. But seems that EWL STD C library can handle it and uses simple bit shifting. 

0 项奖励
回复

656 次查看
Mehul_Patel_NXP
NXP Employee
NXP Employee

Hi, @turkmani_11 , 

Is the problem fixed?

If not please can you provide more information to help with. 

Thank you. Best regards. 

- Mehul

0 项奖励
回复