add tools

This commit is contained in:
Motiejus Jakštys 2019-09-29 06:00:08 +03:00
parent f9e8faca93
commit ee5c46eb45
2 changed files with 8 additions and 0 deletions

1
.gitignore vendored
View File

@ -13,3 +13,4 @@
*.dwl *.dwl
*.dwl2 *.dwl2
*.bak *.bak
__pycache__

7
tools.py Normal file
View File

@ -0,0 +1,7 @@
from decimal import Decimal
def deg(deg, mm, ss):
return (Decimal(deg) +
Decimal(mm) / Decimal(60) +
Decimal(ss) / Decimal(3600)).normalize()