title: How to use recursion to round a decimal to the nth place
body: <p>I have a comp sci question that requires the following:</p>
  
  <p>Write a method that takes a decimal number <code>x</code> and an integer <code>n</code>. Round <code>x</code> to <code>n</code> decimal places (for example, <code>0</code> means round to the nearest integer, <code>1</code> means round to the nearest tenth, etc.). </p>
  
  <p>I don't see how this problem is even approachable using recursion, it seems too straight forward.</p>