5:29 pm - Sunday August 19, 2018

Math Example Program for min(float a,float 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
@desription:
This example shows how find the small float from math method
*/
public class SmallFloat {
	public static void main(String[] args) {
		float a=12.45f;
		float b=12.4567f;
		System.out.println("small float is:"+Math.min(a, b)); //find which Float is Small.
	}

}

Output:
small float is:12.45

BACK

Filed in: Z-A All Java Codes

Comments are closed.