I was wondering if there is a way in C to determine the lenght of a floating point value?

EX:

float x=1.234;

I am wondering if there is a function where i plug in x and it will return the length to be 4?