Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

c convert float to string

#include <stdio.h>
int main()
{
   float f = 1000;
   char c[50]; //size of the number
    sprintf(c, "%g", f);
    printf(c);
    printf("
");
}
 
PREVIOUS NEXT
Tagged: #convert #float #string
ADD COMMENT
Topic
Name
4+9 =