title: Showing decimals of a variable with sprintf in MATLAB
body: <p>I don't understand the next thing that happens using the <a href="http://www.mathworks.se/help/techdoc/ref/sprintf.html" rel="nofollow">sprintf</a> command.</p>
  
  <pre><code>&gt;&gt; vpa(exp(1),53)
  
  ans =
  
  2.7182818284590455348848081484902650117874145507812500
  
  
  &gt;&gt; e = 2.7182818284590455348848081484902650117874145507812500
  
  e =
  
  2.7183
  
  &gt;&gt; sprintf('%0.53f', e)
  
  ans =
  
  2.71828182845904550000000000000000000000000000000000000
  </code></pre>
  
  <p>Why does <code>sprintf</code> show me the number <code>e</code> rounded instead of the number and I kept at the first place?</p>