From 35ea0b1b8b164e715114af324412306dc7d35002 Mon Sep 17 00:00:00 2001 From: carlopav Date: Sun, 17 May 2020 13:04:49 +0200 Subject: [PATCH] further fix to geolocation.py --- src/ifcopenshell-python/ifcopenshell/util/geolocation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ifcopenshell-python/ifcopenshell/util/geolocation.py b/src/ifcopenshell-python/ifcopenshell/util/geolocation.py index 1ac2578152..b37402b98f 100644 --- a/src/ifcopenshell-python/ifcopenshell/util/geolocation.py +++ b/src/ifcopenshell-python/ifcopenshell/util/geolocation.py @@ -1,7 +1,7 @@ import math def dms2dd(degrees, minutes, seconds, milliseconds=0): - dd = float(degrees) + float(minutes)/60 + float(seconds)/(3600) + float(milliseconds/3600000) + dd = float(degrees) + float(minutes)/60.0 + float(seconds)/(3600.0) + float(milliseconds/3600000.0) return dd def dd2dms(dd):