Quote:
Originally Posted by Pat McCarthy
It was. Thanks.
Now how can I use the char value?
I tried:
printf("%c", buffer);
But that printed out an an arrow pointing up. 
|
If you just want to print the value of the float, skip the sprintf() call and go straight to printf():
Code:
float f = 12.4;
printf("%f",f);
The *printf() family of functions (sprintf(), fprintf(), printf(), etc.) all work similarly. Becoming familiar with them will help.
If you ever have a simple question about a function, Google is your friend. (Just put in the function name or "C functionName".) Even Wikipedia has an article about most standard functions.