Math.ceil()

Returns the lowest double value greater or equal to the input value and equal to an integer.
Syntax
Math.ceil(double input_number)
Output is a double value .
	System.out.println(Math.ceil(-20));   // -20.0
	System.out.println(Math.ceil(-20.56));// -20.0
	System.out.println(Math.ceil(-20.12));// -20.0
	System.out.println(Math.ceil(20));    // 20.0
	System.out.println(Math.ceil(20.56)); // 21.0
	System.out.println(Math.ceil(20.12)); // 21.0


All Math functions


plus2net.com



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-2020 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer