[fpc-pascal] Floating point discrepancy in x64 mode

OBones obones at free.fr
Fri Jul 20 14:12:33 CEST 2012

Jonas Maebe wrote:
> Possible solutions:
> a) typecast one of the operands of the division to double (not that this is Delphi-incompatible)
> b) Compile with -CF64 to force all floating point constants to become at least 64 bit in precision, even if they can be represented exactly using 32 bit
I went with the "-CF64" option and it works just fine or us

Many thanks for the fast answer.

More information about the fpc-pascal mailing list