Type-safe dimensional analysis and unit conversion


units-of-measure

Try with Gradle!

View on GitHub Star


Faster Development Cleaner Code Safe Flexibility
Variables and functions will self-document their units. IDE autocomplete will become more accurate. Units will be converted automatically. No magic conversion factors. No massive variable names. Ships with a type-safe math library and support for defining complex generic bounds.
Lightweight 100% Customizable Fast Introspection
Generate only what you need. Optimized to deliver real-time performance with a low memory footprint. Built for any application. Adding support for a new unit or quantity is as simple as adding a line to your build file. Generates converters to handle quantity metadata without reflection for configuration and logging.