Table of Contents
Import these wherever you want to use units-of-measure:
The basic syntax to create a quantity is
Metric prefix functions are also provided.
Math operations work as expected.
You can also create ranges using the
.. operator or the
plusOrMinus infix function.
== also works, but it is not recommended since floating point math is not exact.
Note: quantities are represented by types. Do not use units as types.
Advanced Usage ›