quantities
quantities copied to clipboard
Nullable behavior
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