Comparing slices with std.variant.Algebraic
Ali Çehreli
acehreli at yahoo.com
Mon Sep 5 10:30:32 UTC 2022
On 9/5/22 01:58, anonymouse wrote:
> array [1.7, 3.7, 5.7, 7.7, 9.7] in both cases, which is what is being
> asserted by those two lines.
None of those values can be represented precisely in a floating point
type. Without looking at the code, I wonder whether the tests will pass
if you can manage to use the following values instead, which can be
represented precisely:
[1.5, 3.5, 5.5, 7.5, 9.5]
Ali
More information about the Digitalmars-d-learn
mailing list