title: why does list.count returns 0 in this code
body: <p>I want to find all the factors of this number and store the factors into a list but this list.count returns zero </p>
  
  <pre><code>    List&lt;double&gt; listOfFactors = new List&lt;double&gt;();
      public void FindFactors()
      {
          double num = 600851475143 / 2;
          for (int i = 1; i &lt;= num; i++)
          {
              if (600851475143 % i == 0)
              {
                  listOfFactors.Add(i);
              }
          }
      }
  </code></pre>
  
  <p>Main function code </p>
  
  <pre><code>      class Program
  {
      static void Main(string[] args)
      {
          Calculate cl = new Calculate();
          cl.FindFactors();
      }
  }
  </code></pre>