title: unable to filter records in the test methods as its complaining of AND operator in c#
body: <p>I am trying to write test methods in my c#.net web api application. I need to filter the records from the given object of values and need to use and operator. For some reason it is not liking the and operator since i am using float values.Could somebody tell me what the problem could be ? Please note both are float datatypes</p>
  
  <p>The error message is Equality comparison of floating point numbers. Possible loss of precision while rounding values</p>
  
  <pre><code>    private const float FrontedCoveragePolicyTypeId = 2 ;
      private const float DirectlyWrittenCoveragePolicyTypeId = 1;
      private const float Is953DYes = 1;
      private const float Is953DNo = 0; 
  
      [TestMethod]
      public void GetFedExciseExpenses_OnShore_Fronted_Test()
      {
          var result = _sut.GetFedExciseTaxExpenses(Industryid, DomicileId);
          Assert.IsTrue(result.Any());
          var fedExciseExpense = result.Find(x =&gt; x.CoveragePolicyTypeId == FrontedCoveragePolicyTypeId &amp;&amp; x.Is953D == Is953DNo);
          AssertFedExciseExpense(fedExciseExpense);
      }
  
       private static void AssertFedExciseExpense(FedExciseExpense expense)
      {
          Assert.IsNotNull(expense);
          Assert.IsNotNull(expense.Value);
          Assert.AreEqual(0, expense.Value);
      }
  </code></pre>