Turboc C 1.0 has bugs in it when dealing with floating point numbers. For example, the atof() function does not work at all, it always returns 0.0. The problem was fixed in version 1.5, so you should get a more recent version of Turbo C, preferably version 2.0.