title: How to Format Numbers to Control the Exponential Part
body: <p>Consider the following code,</p>
  
  <pre><code>x &lt;- 1000 * 1.23
  x
  </code></pre>
  
  <p>which returns 1230</p>
  
  <pre><code>format(x, scientific=TRUE)
  </code></pre>
  
  <p>which returns 1.23e+03</p>
  
  <p>But if I have</p>
  
  <pre><code>y &lt;- 10000 * 1.23
  y
  </code></pre>
  
  <p>which returns 12300</p>
  
  <pre><code>format(y, scientific=TRUE)
  </code></pre>
  
  <p>returns 1.23e+04</p>
  
  <p>How can I format the y value so that I can control the exponent?</p>
  
  <p>I want y to be expressed as 12.3e+03?</p>