math.h pow() not working

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

math.h pow() not working

1,318件の閲覧回数
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 返答(返信)

1,194件の閲覧回数
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 件の賞賛
返信

1,209件の閲覧回数
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 件の賞賛
返信