title: Javascript always round up to X decimal places
body: <p>I need to write a function that will ALWAYS round up, but will either round up to 0, 1 or 2 decimal places, depending on if the function is passed a 0, 1 or 2.</p>
  
  <p>Examples...</p>
  
  <p>Round to 0 decimal places:
  13.4178 = 14</p>
  
  <p>Round to 1 decimal place:
  13.4178 = 13.5</p>
  
  <p>Round to 2 decimal places:
  13.4178 = 13.42</p>
  
  <p>I've found <code>Math.ceil</code> but this only rounds up to a whole integer and <code>to fixed()</code> will round up or down, not just up. Is there a way to round up in the way I've described above?</p>