import math


def get_long_dmm(long):
    """Takes an OLEX float and converts it into DMM longitude notation (e.g. 51'6.432 W)

    :param long: An 'Olex float' representing a longitude coordinate.
    :type long: float

    :return: A longitude coordinate (e.g. 51'6.432 W)
    :rtype: str
    """
    long_d = math.trunc(math.fabs(long / 60))
    long_m = math.fabs(long) - (math.fabs(long_d) * 60)
    long_m = str(long_m)
    long_m = long_m[:long_m.index('.')+4]
    if long > 0:
        return str(long_d) + "'" + long_m + " E"
    else:
        return str(long_d) + "'" + long_m + " W"