sprintf with float

How can I format floats using sprintf?

How can I format floats using sprintf?

You can't. sprintf() on the Arduino doesn't support floats. The dtostrf() function might be of interest.

Okay thanks, but why doesn't it? The Arduino supports float type variables, so sprintf aught to as well.

To save memory?

The streaming library supports floats:

http://arduiniana.org/libraries/streaming/