Online Java Compiler By
JavaTpoint.com
public class FloorExample1 { public static void main(String[] args) { double x = 94.69; // Input positive value, Output floor value of x System.out.println(Math.floor(x)); } }
Output