What is wrong with this code:
#include <stdio.h>
#include <math.h>
void main()
{
char str[] = "123456789" ;
float f;
f = ( atof( str ) / 100 );
printf(" %f7.2", f);
}
It doesn't give me the desired result of 1234567.89
Please could you explain why this is and how I can achieve it.