CompuServe Messages

#Is it Lattice or Me?

    09-Mar-90 16:30:53
Sb: #Is it Lattice or Me?
Fm: Raja Vallee-Rai 76370,645
To: All
Hi guys.. I seem to have some problems with floats recently. I'm using 5.04a. Last time that I had problems, it wasn't a bug in my source(which I was going crazy, trying to find) but a bug in 5.04. Anyways, whenever I call a function, with a float as an argument, the function receives a different number. Am I doing something wrong?(Look at the following program, which prints the first a as 10.000000 and the 2nd one as 2.562500.) Or is my version which has another bug in it? #include <stdio.h> float ret(float); main() { float a; a = 10.0; printf("1st: %f\n2nd: %f\n\n", a, ret(a)); return 0; } float ret(float a) { return a; } Thanks for your help. Raja.(A novice C programmer, BTW)