- qunits.Quantity ( value , unit = None )[source]
The base class for quantities. - Multiplying or dividing an
array_likewith aUnitwill return aQuantity. - Multiplying or dividing aQuantityby aUnitwill return a newQuantitywith the same value and the combined unit. - Multiplying or dividing twoQuantityinstances will return a newQuantitywith the combined value and the combined unit. - Multiplying or dividing aQuantityby anarray_likewill return a newQuantitywith the scaled value and the same unit.- Parameters:
-
- valuearray_like | Quantity
The value of the quantity.
- unitUnit | None
The unit of the quantity.