I'm trying to output a float with
printf(theFloat);
However, this gives me the following error.
"argument of type "float" is incompatible with parameter of type "const char *""
I'm not sure why this isn't working, I have had a look and found people using printf
to format floats... Is there another print method for floats etc?
float
into aprintf
like that and expect it to somehow work. What documents did you read onprintf
? What examples did you look through? I'd say that a single example is typically enough to figure out how to useprintf
for a simple task like that. – AnT Jun 6 '13 at 19:19