def convert_dec2dms_dm(coordinate):
    """
    Helper function, convert decimal to degrees and minutes
    """
    coordinate = math_mod._round(coordinate * 60, 0)
    m = coordinate % 60
    coordinate = int(math.floor((coordinate - m) / 60))
    d = "%d°" % (coordinate % 360)

    return u"%s%02d′" % (d, m,)
def convert_dec2dms_dms(coordinate):
    """
    Helper function, convert decimal to degrees, minutes, and seconds
    """
    coordinate = math_mod._round(coordinate * 60 * 60, 0)
    s = coordinate % 60
    coordinate = int(math.floor((coordinate - s) / 60))
    m = coordinate % 60
    coordinate = int(math.floor((coordinate - m) / 60))
    d = "%d°" % (coordinate % 360)

    return u"%s%02d′%02d″" % (d, m, s)
def convert_dec2dms_d(coordinate):
    """
    Helper function, convert decimal to degrees
    """
    return math_mod._round(coordinate, 0) + "°"
def convert_dec2dms_d(coordinate):
    """
    Helper function, convert decimal to degrees
    """
    return math_mod._round(coordinate, 0) + "°"