title: Print double data type with a precision upto 4 decimal places - Armadillo
body: <p>I am trying to use the armadillo library in c++ to do the following.</p>
  <p>Whenever I print out a matrix (<code>arma::mat</code>), it is always printed in the following form:-</p>
  <pre><code>1.0594e+03   1.0439e+04   0.3425e+04
  1.0232e+03  12.0319e+04   0.1225e+04
  11.5044e+03   1.231e+04   0.3424e+04
  </code></pre>
  <p>I wanted to know if there was a way to remove the <code>e+04</code> and actually printing out the whole numbers like:-</p>
  <pre><code> 1059.4   1043.9  3425.0
  1023.23 120319.0  1225.0
  11504.4   1231.0  3424.0
  </code></pre>