Picking up work on an old Java project that has it's own half-baked units of measurement API, I was chuffed to discover JSR 363 - Unit of Measurement API. Maybe I don't need to keep maintaining this custom implementation any more?

But looking deeper, it literally only has support for basic maths operations, and you can't even specify basic stuff like significant digits or rounding modes. A `BigDecimal` value of "100.00" gets coerced to an `int`.

What good is an API for strongly typing and converting physical measurements if you can't effectively perform operations on them?

https://unitsofmeasurement.github.io/unit-api/

#java #unitsofmeasurement #jsr363

Units of Measurement - API

Static blog generated with JBake

Siemens technology for Africa's first automated container terminal

Electrical equipment supplied for 32 automated stacking cranes deployed in 16 intelligent yard blocks and 12 remote-cont ...