import math


def ddm2dg(ddm):
    """Convert a float in decimal degree minutes to decimal degrees"""
    decimal, integer = math.modf(ddm / 100)
    decimal = decimal / 60 * 100
    dg = integer + decimal
    return(dg)