I need the result of big mathematical expression but apparently FPC cannot process it. I've made a simple test program in C and was able to get the correct value. In FPC it gives "Invalid floating point operation", tested in Windows7 (64bit) with FPC 2.2.4 (32 bit) and Ubuntu 9.10 (32bit) with FPC 2.2.4 (32 bit).

http://rapidshare.com/files/370437049/TestFunc.pas
http://rapidshare.com/files/370436993/TestFunc.c

It works for me using FPC from SVN (~7 days old) on Win7. The printed result is: -7.96011734923075E+001.
I guess you need to update your FPC.


Regards,
Žilvinas Ledas
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to