Closed ianmackenzie closed 5 years ago
Multiplying by 0.5 or 2 is pretty common, so make those cases a bit more convenient:
Quantity.half : Quantity Float units -> Quantity Float units Quantity.twice : Quantity number units -> Quantity number units
Equivalent to Quantity.multiplyBy 0.5 and Quantity.multiplyBy 2 respectively.
Quantity.multiplyBy 0.5
Quantity.multiplyBy 2
Multiplying by 0.5 or 2 is pretty common, so make those cases a bit more convenient:
Equivalent to
Quantity.multiplyBy 0.5
andQuantity.multiplyBy 2
respectively.