[fpc-pascal] Loss of precision when using math.Max()
gtt at wolfgang-ehrhardt.de
gtt at wolfgang-ehrhardt.de
Tue Jul 3 21:43:05 CEST 2018
Zitat von Florian Klämpfl <florian at freepascal.org>:
>
> So you want float constants being evaluated always with full
> precision (which would be required for consistency) causing any
> floating point expression containing a constant being evaluated with
> full precision as well?
Yes, at least as default or selectable per option (like FASTMATH etc),
and AFAIK it is default for all compilers I know except 3.1.1.
>> 2. This is a regression from 3.0.4 (here the 32-bit version works as
>> expected for both double and extended, and same for 64-bit except that
>> here extended=double) and to 3.1.1 (both under Win7/64).
>
> This was probably changed for consistency. I tried to find the
> commit which changes this, but I cannot currently find it.
Thank you for your effort.
More information about the fpc-pascal
mailing list