Table of Contents
Benefits
Setup
Usage
Import these wherever you want to use units-of-measure:
The basic syntax to create a quantity is MAGNITUDE.UNIT
.
Metric prefix functions are also provided. MAGNITUDE.PREFIX(UNIT)
.
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.
‹ Configure
Advanced Usage ›