Quote:
Originally Posted by JimWright949
fabs is going to return a value of type float. You are asking printf to interpret this float as an int (%d). To fix it change the %d to %f:
printf("\r\n%f",fabs(-1));
|
The microchip printf does not have a %f format. See this thread for some workarounds:
http://www.chiefdelphi.com/forums/sh...threadid=63845