stud/tools.py
Motiejus Jakštys ee5c46eb45 add tools
2019-09-29 06:00:08 +03:00

8 lines
164 B
Python

from decimal import Decimal
def deg(deg, mm, ss):
return (Decimal(deg) +
Decimal(mm) / Decimal(60) +
Decimal(ss) / Decimal(3600)).normalize()