RE: [fpc-pascal] Nan values SIGFPE exception on 64 bit

2010-11-26 Thread Birger Jansen
> It should cause an exception everywhere by default (it does on PowerPC > 32 bit). You have to use math.setexceptionmask if you want to mask > exceptions for invalid floating point operations: > http://www.freepascal.org/docs-html/rtl/math/setexceptionmask.html Thanks, that fixed my problem.

Re: [fpc-pascal] Nan values SIGFPE exception on 64 bit

2010-11-26 Thread Jonas Maebe
On 26 Nov 2010, at 09:48, Birger Jansen wrote: I encounter a strange difference in the behaviour of NaN values between windows 32 and 64 bit. Have a look at the following program: --- program NanExample; uses math; var a, b, c: Double; begin a := 0.0/0.0; b := 0.0/

[fpc-pascal] Nan values SIGFPE exception on 64 bit

2010-11-26 Thread Birger Jansen
I encounter a strange difference in the behaviour of NaN values between windows 32 and 64 bit. Have a look at the following program: --- program NanExample; uses math; var a, b, c: Double; begin a := 0.0/0.0; b := 0.0/0.0; c := max(a,b); if IsNan(c) then Wri