Converting Float type data to String 06-05-2014, 07:14 AM
#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:
And the output should be printed as:
[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.
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]](http://i.imgur.com/MUJ8qSW.png)
-----------------------------------
Now learning:
Android Development, Java
Working on:
An FTP Client for Android
-----------------------------------
![[+]](https://sinister.ly/images/modern/collapse_collapsed.png)