View Single Post
  #6   Spotlight this post!  
Unread 02-02-2007, 16:33
CrashOverride's Avatar
CrashOverride CrashOverride is offline
Registered User
FRC #1831
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Gilford, NH
Posts: 16
CrashOverride is an unknown quantity at this point
Re: printing FLOAT data type on the terminal window

I looked at the source for the libraries last year and float data type is not included in the vfprinf routine, the code behind printf. Your best bet is to multiply your float by 100 or 1000 depending on how many deicmals you want put the result in a long and printf the result. Aviod floats whenever possible!