title: Rounding to a power of 10
body: <p>I have a variable, <code>tauMax</code>, that I want to round <em>up</em> to the nearest power of ten(1, 10, 100, 1000...). I am using the below expression to find the closest integer to the max value in the tau array. I am finding the max value because I am trying to calculate the power of ten that should be the x axis cutoff. In this cause, tauMax is equal to 756, so I want to have an expression that outputs either 1000, or 3(for 10^3).</p>
  
  <pre><code>tauMax = round(max(tau));
  </code></pre>
  
  <p>I'd really appreciate any help!</p>