uom
uom copied to clipboard
Handle overflows in conversion factors
Handle overflows in conversion factors so that factors that exceed the underlying storage type's min/max values do not cause errors. Currently tests are failing because conversion factors overflow the underlying storage type.
- Don't implement
Conversion
for types that can't represent the conversion factor? e.g. don't implementConversion
forkilometer
when the underlying storage type isu8
. - Implement
Conversion
but have tests skip factors that can't accurately be represented?