|
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. :/
|