Mail Archives: djgpp/1996/11/18/21:22:56
I'm having a problem using FP math with DJGPP 2.0. (If this is a
previously reported bug, just let me know. I personally am not sure
I'm coding this correctly) Anyway, I'm trying to subtract cmin.r from
cmax.r (both float values in a two member structure) and assign it to
a float, a.
A snippet follows
a=(cmax.r-cmin.r)
Whatever I do, a is always the trash value the program starts with!
I've tried explicit typecasting:
a=(float)((cmax.r)-(cmin.r));
to no avail. Any help would be _greatly_ appreciated. I'm running a
486dx/66, and am linking /w libgrx20 and libm.
Thanks,
Jeff
rbachtel AT ghgcorp DOT com
- Raw text -