title: Decimal out of range exception
body: <p>In my C# application, I am trying to save a decimal price into a SQL Server table. Columns type is <code>decimal</code> with no total digits defined.</p>
  
  <p>Without discount calculations, everything works fine. </p>
  
  <p>But when I run some calculations, I get a final value of <code>21800</code>, and I get the following error when trying to save it.</p>
  
  <pre><code>"Parameter value '218000/00000000000000' is out of range."
  </code></pre>
  
  <p>I don't understand where the extra zeros come from! The only thing I know is with <code>myValue.ToString()</code> I get <code>218000/00000000000000</code>, too!</p>
  
  <p>I understand that the digits after floating point are caused by the calculations. But whatever they do, my value is <code>21800</code> when watching it. Why is it trying to save <code>218000/00000000000000</code>? Why does it care at all about the zeros?</p>
  
  <p>Any ideas why this happens and how to fix it?</p>