Check out example codes for "round off java 2 decimal places". It will help you in understanding the concepts better.

Code Example 1

class round{
    public static void main(String args[]){

    double a = 123.13698;
    double roundOff = Math.round(a*100)/100;

    System.out.println(roundOff);
}
}

Learn ReactJs, React Native from akashmittal.com