title: Incorrect sum of decimal values in vb.net
body: <p>I'm pulling data from a T-SQL procedure, one of my columns is cast as numeric(18,2)</p>
  
  <p>When i run this procedure and copy the data to excel, the sum on this column is 0.01 less than the sum i get when i run this on vb.net.</p>
  
  <p>In vb.net, i am aggregating the values for the column into a dictionary(of string, decimal)</p>
  
  <p>I don't know why this happening.</p>
  
  <pre><code>   If Not dr.IsDBNull(dr.GetOrdinal(f.field)) Then
          Dim dval = If(dr.IsDBNull(dr.GetOrdinal(f.field)), 0D, dr.GetDecimal(dr.GetOrdinal(f.field)))
          di.Add(New FieldValue With {.Type = f, .Value = If(rpt.allow_negatives, dval, Math.Abs(dval))}, rpt.overide_format)
          If rpt.has_total AndAlso f.totaled Then totals(f.field) += dval
      Else
          di.Add(New FieldValue With {.Type = f, .Value = 0D})
      End If
  </code></pre>