sprintf with float

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.