Online Java Compiler By
JavaTpoint.com
public class RintExample2 { public static void main(String[] args) { double x = -37.25; // Input negative zero, Output round the x System.out.println(Math.rint(x)); } }
Output