Math.max()

Returns the highest of two input numbers .
Syntax
Math.max(input_number1, input_number2)
Output is the maximum of two input numbers .
	System.out.println(Math.max(23, 12));      //23
	System.out.println(Math.max(23.4, 12.56)); //23.4
	System.out.println(Math.max(7,9));         // 9


All Math functions
Java


plus2net.com






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