1
0
Эх сурвалжийг харах

Canonicalize the base representation

David Peter 2 жил өмнө
parent
commit
de50beacb9
1 өөрчлөгдсөн 2 нэмэгдсэн , 1 устгасан
  1. 2 1
      numbat/src/unit.rs

+ 2 - 1
numbat/src/unit.rs

@@ -167,7 +167,8 @@ impl Unit {
                      exponent,
                  }| { base_unit.corresponding_base_unit().power(*exponent) },
             )
-            .product();
+            .product::<Self>()
+            .canonicalized();
 
         let factor = self
             .iter()