Added compare floating  function