#include <stdlib.h> #include <stdio.h> int main() { char string[] = "10.66814"; float value = atof(string); printf ("%f", value); return 0; }