Math: floor(float value) : Math « java.lang « Java by API
- Java by API
- java.lang
- Math
Math: floor(float value)
/*
* Output:
The floor of 45.7 is 45.0
*/
public class MainClass {
public static void main(String args[]) {
System.out.println("The floor of 45.7 is " +
Math.floor(45.7));
}
}
Related examples in the same category