Mail Archives: djgpp/1997/10/12/08:32:46
On Sat, 11 Oct 1997, Reinier Heeres wrote:
> It seems to me that DJGPP v2.0 has some trouble with floating point,
> look at this code:
>
> p->s_x=p->r_v.x;
>
> (Where s_x is an int, and r_v.x is a float)
>
> This code will always produce a floating point exceptions, why??? Can
> anybody please help me to solve this???
Please post at least the value in p->r_v.x. You don't really suppose
people here can guess what's wrong with your program without seeing
the data?
In general, assigning a floating point number to an int works for me.
Maybe in your program r_v.x gets a NaN or a garbled value.
- Raw text -