Your current strategy has one major flaw: for the division (/100), you are using an integer division, which discards the decimal portion and returns an integer value. You need to ensure that this division is done in floating-point arithmetic by changing one of the operands to a double. That will fix it.
This is how you change line 4:
double roundOff = Math.round(a*100.0)/100.0;
This is the entire updated code:
class round{
public static void main(String args[]){
double a = 123.13698;
double roundOff = Math.round(a*100.0)/100.0;
System.out.println(roundOff);
}
}
This will provide you with the output 123.14.