Returns the highest double value lower or equal to the input number and equal to an integer.
Math.floor(double input_number)
Output is a double value .
	System.out.println(Math.floor(-20));   // -20.0
	System.out.println(Math.floor(-20.56));// -21.0
	System.out.println(Math.floor(-20.12));// -21.0
	System.out.println(Math.floor(20));    // 20.0
	System.out.println(Math.floor(20.56)); // 20.0
	System.out.println(Math.floor(20.12)); // 20.0

All Math functions


* indicates required
Subscribe to plus2net

    Post your comments , suggestion , error , requirements etc here

    We use cookies to improve your browsing experience. . Learn more
    HTML MySQL PHP JavaScript ASP Photoshop Articles FORUM . Contact us
    ©2000-2024 All rights reserved worldwide Privacy Policy Disclaimer