You can use dtostrf() but you need to include this at the top of your sketch
#include <avr/dtostrf.h>
void setup() {
// put your setup code here, to run once:
float val = 3.14159;
char buff[20];
dtostrf(val, 4, 6, buff);
}
void loop() {
// put your main code here, to run repeatedly:
}