stud/tools.py

8 lines
164 B
Python
Raw Normal View History

2019-09-29 06:00:08 +03:00
from decimal import Decimal
def deg(deg, mm, ss):
return (Decimal(deg) +
Decimal(mm) / Decimal(60) +
Decimal(ss) / Decimal(3600)).normalize()