diff --git a/.gitignore b/.gitignore index e59ab9a..df3e329 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,4 @@ *.dwl *.dwl2 *.bak +__pycache__ diff --git a/tools.py b/tools.py new file mode 100644 index 0000000..1145e6a --- /dev/null +++ b/tools.py @@ -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()