import math


def lcf_float(val1, val2, tolerance):
    """Finds lowest common floating point factor between two floating point numbers"""
    i = 1.0
    while True:
        test = float(val1) / i
        check = float(val2) / test
        floor_check = math.floor(check)
        compare = floor_check * test
        if val2 - compare < (tolerance / 2.0):
            return test
        i += 1.0