I want to put the value of an array into a float integer.
main(){
float a;
char array[4]="12.1";
a=atoi(array);
printf("%f",a);
}
When I uses this program, it gives 12.000000 as output but I want 12.100000 as output. Thanks in advance.