sprintf and printf with %f, %e, or %g doesn't output anything
In order to minimize program size, CrossWorks links in versions of the printf and scanf functions without floating point support . You must enable floating point output using printf and scanf by setting the Floating Point I/O Supported property of your project to Yes.
So, I did that and now I'm getting numbers coming out but they aren't right!
If you are using any of the printf family, you must include the header file <stdio.h>, and for the sprintf family you must include the header file <stdlib.h>. Always get the correct prototypes!