In scientific and engineering applications, physical quantities embodied as units of measurement (UoM) are frequently used. While managing units of measurement is a fairly mature topic in software engineering, more subtle metrological concepts such as named quantities have had little traction within the scientific programming community. The loss of the Mars climate orbiter, attributed to a confusion between the metric and imperial unit systems, popularised the disastrous consequences of incorrectly handling measurement values. This has led to the development of a large number of libraries, languages and tools to ensure developers can specify and validate UoM information in their designs and codes. However these systems do not differentiate between quantities and dimensions. For instance torque and work, which share the same UoM, can not be interchanged because they do not represent the same entity. We present a named quantity layer that sits on top of a dimension checker and unit con verter ensuring values of different quantities are correctly managed without undue restrictions. Our quantity algebra works alongside the unit dimensions to ensure we maintain named quantities when we perform arithmetic and function calls.