title: Why decimal behave differently?
body: <p>I am doing this small exercise.</p>
  
  <pre><code>declare @No decimal(38,5);
  set @No=12345678910111213.14151;
  
  select @No*1000/1000,@No/1000*1000,@No;
  </code></pre>
  
  <p>Results are:</p>
  
  <pre><code>12345678910111213.141510    
  12345678910111213.141000    
  12345678910111213.14151
  </code></pre>
  
  <p>Why are the results of first 2 selects different when mathematically it should be same?</p>