def strip_units(value):
    """
    Strip unit characters from the end of value, leaving only the numeric data.
    """
    while value[-1] not in '0123456789.':
        value = value[:-1]
    return value
