Skip to content

Commit

Permalink
Unit parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
tisnik committed Apr 16, 2024
1 parent e08f769 commit 99afee7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pint/30_parsing.py
@@ -0,0 +1,7 @@
from pint import UnitRegistry

ureg = UnitRegistry()
value = ureg("1 meter 23 centimeters 4 millimeters")

print(value)
print(value.to_base_units())

0 comments on commit 99afee7

Please sign in to comment.