title: Decimal and mathematical operations
body: <p>I have a simple conversion of a <code>decimal</code> in C#. It looks like this:</p>
  
  <pre><code>private decimal BaseValue
  {
      get; set;
  }
  
  public decimal ConvertedValue 
  {
      get
      {
          return BaseValue * (365 / 360);
      }
  }
  </code></pre>
  
  <p>However, this does not work. I assume because C# is processeing the numbers in the fraction as integers. So I can do like this instead (which works):</p>
  
  <pre><code>public decimal ConvertedValue 
  {
      get
      {
          return BaseValue * (decimal)((double)365 / (double)360);
      }
  }
  </code></pre>
  
  <p>Now this seems a bit like overkill, but I can live with that. My primary question is this:</p>
  
  <blockquote>
    <p>Why does Visual Studio warn me that 'Cast is redundant', for the <code>(double)</code> cast? And if I remove the <code>(double)</code> cast, then the <code>(decimal)</code> cast becomes redundant. And if I remove that, then I am back to the solution, which does not work. Help...?</p>
  </blockquote>