def METHOD_NAME(stream, size):
    """Read the Element Data of type :data:`FLOAT`
    :param stream: file-like object from which to read
    :param int size: size of element's data
    :raise ReadError: when not all the required bytes could be read
    :raise SizeError: if size is incorrect
    :return: the read float
    :rtype: float
    """
    if size == 4:
        return unpack('>f', _read(stream, 4))[0]
    elif size == 8:
        return unpack('>d', _read(stream, 8))[0]
    else:
        raise SizeError(size)