[fpc-pascal] Floating point question
Thomas Kurz
fpc.2021 at t-net.ruhr
Tue Feb 6 12:51:57 CET 2024
Thank you all!!!!
Finally I understand what's going wrong and can take care of that.
I'm now using the "{$MINFPCONSTPREC 64}" and have the correct result. Again, thank you for pointing me to that behavior!
----- Original Message -----
From: Adriaan van Os via fpc-pascal <fpc-pascal at lists.freepascal.org>
To: FPC-Pascal users discussions <fpc-pascal at lists.freepascal.org>
Sent: Sunday, February 4, 2024, 13:50:48
Subject: [fpc-pascal] Floating point question
Jonas Maebe via fpc-pascal wrote:
> On 03/02/2024 18:42, James Richters via fpc-pascal wrote:
>> Constants are also evaluated wrong,you don’t know what that constant
>> is going to be used for, so all steps of evaluating a constant MUST be
>> done in extended by the compiler, or the answer is just wrong.
> See
> https://wiki.freepascal.org/User_Changes_2.2.0#Floating_point_constants
> and https://www.freepascal.org/daily/doc/prog/progsu19.html
I think this discussion shows that the 2.2 compiler change was a bad idea (for modes other than
Delphi).
Regards,
Adriaan van Os
_______________________________________________
fpc-pascal maillist - fpc-pascal at lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
More information about the fpc-pascal
mailing list