title: Java - how to round a calculation statement result to two significant figures
body: <p>New to Java, relatively new to programming. The code below is the last couple lines of a program that already runs perfectly -- I just want to round the end result (the newTuition variable) and limit it to two significant figures. </p>
  
  <p>newTuition, TUITIONINCREASE and tuition are all doubles.</p>
  
  <pre><code>    newTuition = ((TUITIONINCREASE * .01) * tuition) + tuition + ".");
      System.out.println("Your current tuition is $" + tuition + ". It will rise next year by " + TUITIONINCREASE + "% and " +
      "your new tuition will be $" + newTuition);
  </code></pre>