Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2010-03

FPC doesn't support big equations

4 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Paulo Malheiros

Hello,

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

Any idea on how to solve this?

Best regards,
Paulo Malheiros

Reply by email

Žilvinas Ledas
to Paulo Malheiros
Show quoted text 9 lines
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

Reply by email

Jonas Maebe
to Paulo Malheiros: I need the result of big mathematical expression but apparently FPC cannot process it.…
Paulo Malheiros wrote
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).

It has been fixed for i386 in FPC 2.4.0, and for x86_64 in svn.

Jonas

Reply by email

Paulo Malheiros
to Jonas Maebe

Thanks ?ilvinas and Jonas, I'll update my FPC.

Paulo

Citando Jonas Maebe :

Show quoted text 16 lines
On 31 Mar 2010, at 21:01, Paulo Malheiros wrote: > 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). It has been fixed for i386 in FPC 2.4.0, and for x86_64 in svn. Jonas_______________________________________________ fpc-devel maillist - http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply by email