lat = 49.2041869 lon = 16.5980044 ## The easiest solution print round(lat, 2), round(lon, 2) ## This will result in 49.2 and 16.6 (which is only one decimal place), but the trailing zeros in 49.20 and 16.60 are not stored (49.2 and 49.20 is the same thing). ## But this can rarely be done only in one way: print round(lat * 100)/100, round(lon * 100)/100 # you could do this e.g. if you forget that round() takes multiple arguments