#include #include #include #include //#define double float void main(void) { double f; //remember to always use double with QLIB byte a; byte tmpstr[80]; printf("Testing floats\n"); printf("Enter 0 to quit\n"); do { printf("\nEnter a float:"); gets(tmpstr); f=atof(tmpstr); printf("That's %f or %e\n",f,f); } while (f!=0.0); }