Login Register






Converting Float type data to String filter_list
Author
Message
Converting Float type data to String #1
Can someone help me convert a float type input data into string?
I don't want to use any library function.
For example:

The input goes like this:
scanf("%f",&data);

And the output should be printed as:
printf("%s",converted_data);

[I tried but messed up every time. My last attempt was to fputs the float data into a text file and then fgetc it to an array and then printf it using %s. Failed miserably. :troll:]

Thanks.
[Image: MUJ8qSW.png]
-----------------------------------
Now learning:
Android Development, Java
Working on:
An FTP Client for Android
-----------------------------------

Reply





Messages In This Thread
Converting Float type data to String - by alok9shm - 06-05-2014, 07:14 AM