Skip to content

Commit

Permalink
add feet to available unit conversions
Browse files Browse the repository at this point in the history
  • Loading branch information
Ken Kundert authored and Ken Kundert committed Jun 20, 2021
1 parent c8819d6 commit 7b61310
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions doc/releases.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ Latest development release
| Version: 2.14.0
| Released: 2021-06-18
- add feet to the available length/distance unit conversions.


2.14 (2021-06-18)
-----------------
Expand Down
3 changes: 2 additions & 1 deletion quantiphy.py
Original file line number Diff line number Diff line change
Expand Up @@ -525,14 +525,15 @@ def __str__(self):
UnitConversion('K', 'F °F', 5/9, 273.15 - 32*5/9)
UnitConversion('K', 'R °R', 5/9, 0)

# Distance conversions {{{2
# Length/Distance conversions {{{2
UnitConversion('m', 'km', 1000)
UnitConversion('m', 'cm', 1/100)
UnitConversion('m', 'mm', 1/1000)
UnitConversion('m', 'um µm μm micron', 1/1000000)
UnitConversion('m', 'nm', 1/1000000000)
UnitConversion('m', 'Å angstrom', 1/10000000000)
UnitConversion('m', 'mi mile miles', 1609.344)
UnitConversion('m', 'ft feet', 0.3048)
UnitConversion('m', 'in inch inches', 0.0254)

# Mass conversions {{{2
Expand Down

0 comments on commit 7b61310

Please sign in to comment.