title: Rounding to the Nearest Hundredth
body: <p>I am a new programmer, I would like to know how to round to the nearest hundredth.
  Here is the code</p>
  <pre><code>import java.util.Scanner;
  
  public class Main {
  
    public static void main(String[] args) {
      Scanner in = new Scanner(System.in);
  
      System.out.print(&quot;Input first number: &quot;);
      double num1 = in.nextDouble();
  
      System.out.print(&quot;Input second number: &quot;);
      double num2 = in.nextDouble();
  
      System.out.println(num1 + &quot; + &quot; + num2 + &quot; = &quot; + (num1 + num2));
  
      System.out.println(num1 + &quot; - &quot; + num2 + &quot; = &quot; + (num1 - num2));
  
      System.out.println(num1 + &quot; x &quot; + num2 + &quot; = &quot; + (num1 * num2));
  
      System.out.println(num1 + &quot; / &quot; + num2 + &quot; = &quot; + (num1 / num2));
    }
  }
  </code></pre>
  <p>please answer with the code to round to the nearest hundredth. Thank You.</p>