Problem with sprintf with float


so I have this.

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

temperature prints out

? F

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

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

Here's how I would do this sort of thing: