Introducing Radical.sh

Forget Code launches a powerful code generator for building API's

atof - Converts String to float value in C++

//ATOF() FUNCTION

#include<iostream.h>
#include<stdlib.h>
#include<conio.h>
void main()
{
char a[10]="3.141592";
clrscr();
cout<<"Printing a float number:"<<atof(a);
getch();

}