Differences in results when using the same function in CTFE and Runtime
Timon Gehr
timon.gehr at gmx.ch
Thu Aug 15 11:03:35 UTC 2024
On 8/15/24 11:13, Carsten Schlote wrote:
> On Tuesday, 13 August 2024 at 07:56:34 UTC, Abdulhaq wrote:
>> One little piece of anecdata, when working with python I saw differing
>> results in the 17th d.p. when running the exact same calculation in
>> the same python session. The reason turned out to be which registers
>> were being used each time, which could vary. This is not considered to
>> be a bug.
>
> I would consider it a bug.
>
> Running the same piece of code multiple times with exactly the same
> parameters should result into the exactly same results.
The D spec allows this to not be true too. I consider it a weakness of
the spec.
More information about the Digitalmars-d
mailing list