quantities icon indicating copy to clipboard operation
quantities copied to clipboard

Nullable behavior

Open wilsonjord opened this issue 6 years ago • 0 comments

Hello,

Just some odd behavior when using Nullable:

    auto a = unit!double("A");
    auto b = unit!double("B") / unit!double("A");
    auto c = Nullable!(QVariant!double) (b);

    writeln (a * b); // 1 [B]
    writeln (b * a); // 1 [B]
    writeln (c * a); // 1 [B]
    writeln (a * c); // DimensionException, Not dimensionless

Thanks,

Jordan

wilsonjord avatar Jul 02 '18 03:07 wilsonjord