Problem with sprintf with float

Hey,

so I have this.

    char temperature[10];
    float temp = 10.55;
    sprintf(temperature,"%f F", temp);
    Serial.println(temperature);

temperature prints out

? F

Any thoughts on how to format this float? I need it to be a char string.
thanks.

The Arduino implementation of sprintf does not support the formatting of floats.

There are many threads on the problem and solutions in this forum such as
http://forum.arduino.cc/index.php?topic=261428.0

Here's how I would do this sort of thing:
http://forum.arduino.cc/index.php?topic=218626.msg1596638#msg1596638