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 864b912 commit e08f769
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pint/29_parsing.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from pint import UnitRegistry

ureg = UnitRegistry()
value = ureg("10 newtons")

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

0 comments on commit e08f769

Please sign in to comment.