def degrees_to_dms(degrees):
 deg = int(degrees)
 min = int(((degrees - deg) * 60))
 sec = ((((degrees - deg) - (min / 60.0)) * 60) * 60)
 return (u'%d\xb0%02u\'%05.2f"' % (deg, abs(min), abs(sec)))

def degrees_to_dms ( degrees ) : deg = int ( degrees ) min = int ( ( ( degrees - deg ) * 60 ) ) sec = ( ( ( ( degrees - deg ) - ( min / 60.0 ) ) * 60 ) * 60 ) return ( u'%d\xb0%02u\'%05.2f"' % ( deg , abs ( min ) , abs ( sec ) ) )
return a degrees:minutes:seconds string .