Closed fekadeabdejene closed 2 years ago
Looks good. What's the use case for mm3?
When we do volume calculations we support dimensions with millimeter
units. These would convert to cubic_millimeter
after calculating the volume. This allows us to have a base unit for volume in these cases to do subsequent conversions with like liters
, cubic_meters
etc.
I have released both measured
and measured-rails
at 2.8.2
with this change.
Add support additional volume units:
cm3
- 1 cubic centimeter = 0.001 litersmm3
- 1 cubic millimeter = 0.000001 litersNative support for
cm3
andmm3
units in the measured gem.Added: Unit conversion Tests for all unit conversions Updated cache