ansys / pyansys-units

Pythonic interface for units, unit systems, and unit conversions.
http://units.docs.pyansys.com/
MIT License
6 stars 2 forks source link

Dimensions less division units #261

Closed hpohekar closed 7 months ago

hpohekar commented 7 months ago
>>> import ansys.units as u
>>> u.Quantity(1, "mm") * u.Quantity(1, "in")
Quantity (1.0, "mm in")
>>> u.Quantity(1, "mm") / u.Quantity(1, "in")
Quantity (1.0, "")

So, the last result can be Quantity(1.0, "mm in^-1")