Am 03.10.2018 um 10:40 schrieb mailingli...@geldenhuys.co.uk: > I have this simple little test. My expected answer for all the calculations > are 0 (zero), but both FPC and Delphi give > different results. Java is the only one that seems consistent regarding the > results.
Compile/run on the same architecture, use the same data types (and not extended for Object Pascal and double for Java). With 3.0.4 x86_64-win64 I get (on i386-win32 you get this if you use the same data types and compile with -Cfsse2): 5.1009900000000001E+004 5.1009900000000001E+004 5.1009900000000001E+004 --- 0.0000000000000000E+000 0.0000000000000000E+000 0.0000000000000000E+000 0.0000000000000000E+000 0.0000000000000000E+000 _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal