From: rfrankel@obelix.obelix.us.oracle.com (Rick Frankel) Subject: Re: C, doubles Date: 21 Sep 1993 18:39:57 GMT
In article <CDnCtx.3p9@bfsec.bt.co.uk> ptrouton@bfsec.bt.co.uk (Paul Trouton) writes:
> once in the computer, some may need to be converted to a double or
> integer.
> ...
> My problem is that I can compile the program, but once I try and run
> the program, it gives me a 'floating point exception error' after the
> command to change vat (or any other string to double conversion).
> The program works fine on the Sun, but not on my 486 at home, under
> Linux.
I have a similar problem.
I'm trying to compile perl5alpha under linux (only guaranteed to work
on sun sparc ;) And any time (all the time) it tries to coerce a
double to a (long) int it generates an FPE.
Is this an interaction between gcc * the fpu? is their a switch to fix
it?
thanx,
rick