PWM - Peltier working code

I started to dig around C++ tutes and I seen a few places that say sprintf() can format the value, but i cant figure out how to get it to work on the arduino.

char tBuffer[5];
float temp = 15.2304;
sprintf(tBuffer, "%2.2f", temp);
// Not sure what to do with tBuffer

I think one of my biggest problems is i dont have an IDE that I can run some test codes on to sort out the logic before i upload it to the arduino.