Floating point operations - MC9S12DP512.

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

Floating point operations - MC9S12DP512.

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