Floating point operations - MC9S12DP512.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Floating point operations - MC9S12DP512.

1,315 Views
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
Labels (1)
0 Kudos
3 Replies

335 Views
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 Kudos

335 Views
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 Kudos

335 Views
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 Kudos