View Single Post
  #3   Spotlight this post!  
Unread 02-02-2007, 12:52
Salik Syed Salik Syed is offline
Registered User
FRC #0701 (RoboVikes)
Team Role: Alumni
 
Join Date: Jan 2003
Rookie Year: 2001
Location: Stanford CA.
Posts: 514
Salik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud of
Send a message via AIM to Salik Syed
Re: printing FLOAT data type on the terminal window

I don't think it's that bad to use a couple floats, but overuse can lead to slow downs in processing time.
the use of floating point numbers is not native to the PIC, Instead MPLAB uses a software routine to do the math (this is done at compile time), internally everything is probably represented differently. So everytime you do a float there extra steps the processor has to take.

If you want to printf it you could just multiply by 100 or 1000 or however much accuracy you want and then cast it to an int.
__________________
Team 701