View Single Post
  #10   Spotlight this post!  
Unread 03-02-2007, 09:25
pheadxdll pheadxdll is offline
Registered User
AKA: Alex
FRC #1225 (Amperage Robotics)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2006
Location: North Carolina
Posts: 168
pheadxdll has much to be proud ofpheadxdll has much to be proud ofpheadxdll has much to be proud ofpheadxdll has much to be proud ofpheadxdll has much to be proud ofpheadxdll has much to be proud ofpheadxdll has much to be proud ofpheadxdll has much to be proud ofpheadxdll has much to be proud of
Re: printing FLOAT data type on the terminal window

The prinf function isn't capable of printing floats. Instead convert your float to an integer and multiple it by 100.0. Use %d and print it. That should work.

float tan = -12.423421;
printf("Tan is = %d\r\n",(int)(tan * 100.0));
__________________
Amperage Robotics Team 1225
Site under-going revamp. :/