C language convert string to float

https://w‮w‬w.lautturi.com
C language convert string to float
/*
Example: convert string to float in C language
*/

#include <stdio.h>
#include <stdlib.h>

int main(int argc, char const *argv[])
{
    char* str = "12.34";
    float val = atof(str);
    printf("%f",val);
    return 0;
}
Created Time:2017-08-28 15:12:17  Author:lautturi