How can I convert variable float type data to string in c? : For example: f= ((100+x)/x)*1.5. So my float is variable type. then how can I make it to string with having precision. I am new in C. Please help.