how to convert float number (92.764 or 2.14) to character string without using sprintf?.

First call modf() to split the float into two parts -- integer part and fractional part. If you know how to convert an integer into string, then you can convert the digits of each part separately using the same algorithm. For the fractional part, you have to multiply it by 10^n where n is the precision you want it to have, then assign that to an integer.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.