On Thursday, 20 December 2018 at 14:49:10 UTC, Marko wrote:
But is this right? I mean if they are equal shouldn't they have the same behavior?
I don't think so:
float a = 1.0;
long b = 1;
writeln(a == b);
writeln(a/2 == b/2);
On Thursday, 20 December 2018 at 14:49:10 UTC, Marko wrote:
But is this right? I mean if they are equal shouldn't they have the same behavior?
I don't think so:
float a = 1.0;
long b = 1;
writeln(a == b);
writeln(a/2 == b/2);