Java tutorial
public class Main { public static void main(String[] args) { double x = 123456.7; double y = -123.45; // call floor and print the result System.out.println("Math.floor(" + x + ")=" + Math.floor(x)); System.out.println("Math.floor(" + y + ")=" + Math.floor(y)); System.out.println("Math.floor(0)=" + Math.floor(0)); } }