def clean_coordinates(coordinate):
    """
    Ensure coordiantes are stored as floats.

    :param str coordinate: a string representing either a latitude, either a longitude.
    :return: the float representing the coordinate
    :rtype: float
    """
    try:
        return float(coordinate)
    except ValueError:
        return None