2:22 am - Friday April 19, 2019

Math Example Program for min(double a,double b)

CANDID INDUSTRIAL TRAINING -- CHENNAI
Corporate Training for Experienced Candidate
Struts | Hibernate | Spring | Java / J2EE
SOAP | RestFull | Design Pattern | more...
Ph: +91 72000 69003
137b, 2nd st, shanthi nagar, Chrompet, Chennai -600044
/**
@author:candidjava
@description:
This example shows how find the small double from math method
*/
public class SmallDouble {
	public static void main(String[] args) {
		double a=45.9876;
		double b=-76.765;
		System.out.println("small double value is:"+Math.min(a, b)); //find which Double is small.
	}

}

output:
small double value is: -76.765;


BACK

Filed in: Z-A All Java Codes

Comments are closed.