Online Java Compiler By
JavaTpoint.com
public class RintExample1 { public static void main(String[] args) { double x = 81.68; // Input positive value, Output round the x System.out.println(Math.rint(x)); } }
Output