Table of Contents
Automatic Unit Conversion
Lets do a practice problem:
How many days does it take for a 3.7V 500mAh battery to discharge when a 10kΩ resistor is placed across its terminals?
If we were to solve this using numeric datatypes, all unit conversions must be taken care of by hand. This becomes tedious, error prone, and difficult to read:
But, with units-of-measure, all unit conversions happen automatically.
No magic constants. No massive variable names.
‹ Benefit: Faster Development Install ›› Benefit: Safe Flexibility ›