- qunits. Unit.to ( unit )[source]
Convert the unit into a
Quantityin the targetUnit.- Parameters:
-
- unitUnit | None
The target unit as a
Unitinstance (e.g.,u.m), orNoneto convert to SI base units.
- Returns:
-
- quantityQuantity
The unit converted into the target
Unit.