Make a special equals() function, like this:

Code:
const
  //A treshold for float comparison
  EPSILON = 1e-5;

implementation

function Equals(const a, b: Single): Boolean;
begin
  Result := (a - b < EPSILON);
end;
Make similar functions to compare vectors and colors.