James Richters via fpc-pascal schrieb am
Di., 20. Feb. 2024, 04:42:
> I don't know why it would be different in Windows than on Linux.
If you're using Win64, then the answer is simple: x86_64-win64 unlike any
other x86 target does not support Extended, so neither the compiler nor the
code in
>I would not put too much trust in Windows calculator, since there you have
no control over the precision at all.
The actual CORRECT answer according to
https://www.wolframalpha.com/input?i=1%2F3.5 Is
0.285714 Repeating forever
Which is what I get on windows only when using Variables.
On Sun, 18 Feb 2024, James Richters via fpc-pascal wrote:
And if you have set the precision, then the calculation will be identical to
the calculation when you use a variable of the same type (if not, it's indeed a
bug).
This is what I have been trying to point out. Math with identical
>And if you have set the precision, then the calculation will be identical to
>the calculation when you use a variable of the same type (if not, it's indeed
>a bug).
This is what I have been trying to point out. Math with identical casting with
variables and constants are not the same.
Maybe