Construct from an expression, scalar with optional units, definition, or Quantity. An existing Quantity preserves its units and converts to this class's backend; a plain definition must already contain a destination-native scalar.
Value or expression to construct.
Optionalunits: string
Units for a separate scalar; ignored for quantities and definitions.
Optionalparser: Parser<T>
Optional override retained by derived operations and clones.
ReadonlyconfigComplete effective numeric and cache configuration.
ReadonlyconversionPer-instance conversion cache limits.
ReadonlyparserEffective parser configuration.
Create a class with numeric overrides and Quantity cache policies.
Omitted settings inherit; cache: false disables optional caching and true
restores defaults. Numeric overrides require a configurable adapter.
The original class is unchanged; results retain the newly configured class.
A constructible Quantity class bound to one numeric backend and parser factory. Returned by createQuantityClass and used by the package presets. The scalar type and available numeric configuration are inferred from the adapter.