Floating point operations - MC9S12DP512.

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

Floating point operations - MC9S12DP512.

2,004 次查看
kp2309
Contributor I

Hi,

Our project involves the use of MC9S12DP512. Till the time we were not using floating point operations because of limited application. Now we are building an application wherein we need to use interpolation methods algorithm. For that we want floating point operations support, but currrently i tried but event after declaring all variables float, the operations like division, multiplication is not resulting in float result.

Can anyone tell me the controller i specified supports floating point operations?if yes, is there any particular way i should follow and what is it???

 

Thanks n Regards,

KP

 

Added p/n to subject.

Message Edited by NLFSJ on 2009-05-14 07:18 AM
标签 (1)
0 项奖励
回复
3 回复数

1,024 次查看
Lundin
Senior Contributor IV
Float numbers are handled by software, not hardware.

You need to specify that you want to use float numbers when creating a new Codewarrior project, or they won't work.
0 项奖励
回复

1,024 次查看
kp2309
Contributor I

While creating project i have selected floating point support.

But it is not giving the answer of any division or multiplication in float.

 

0 项奖励
回复

1,024 次查看
kef
Specialist I

Could you be more specific and explain what this means


kp2309 wrote:

i tried but event after declaring all variables float, the operations like division, multiplication is not resulting in float result.


Any code example + explanation what you get and what you expect to get?

Message Edited by kef on 2009-05-14 11:24 AM
0 项奖励
回复