Module quantity

Source
Expand description

Represents a quantity with a non-negative value and specified precision.

Structs§

Quantity
Represents a quantity with a non-negative value and specified precision.

Constants§

QUANTITY_MAX
The maximum valid quantity value that can be represented.
QUANTITY_MIN
The minimum valid quantity value that can be represented.
QUANTITY_UNDEF
The sentinel value for an unset or null quantity.

Statics§

QUANTITY_RAW_MAX
The maximum raw quantity integer value.

Functions§

check_positive_quantity
Checks if the quantity value is positive.

Type Aliases§

QuantityRaw