stud/misc/tools.py
2019-10-31 19:18:11 +02: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()