Flaoting point operations : unexpected results
frame
frame86 at live.com
Fri Jun 11 08:26:28 UTC 2021
On Thursday, 10 June 2021 at 20:18:03 UTC, seany wrote:
> On Thursday, 10 June 2021 at 19:51:51 UTC, Dennis wrote:
>> On Thursday, 10 June 2021 at 19:37:36 UTC, seany wrote:
>>> However, i sometimes see, that the results are _radically_
>>> different.
>>
>> Are you using uninitialized memory or multi-threading?
>
> I am using things like :
>
> `double [][] myArr = new double [][] (0,0);`
> I dont think these are "uninitialized"?
Just to clarify, this statement does not initialize double values
to 0. It just creates the array with lengths of 0. If you disable
range checking as in release mode, you wouldn't see any error
here.
More information about the Digitalmars-d-learn
mailing list