7:45 pm - Thursday April 25, 2019

Double Example Program for isInfinite(double v)

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
//Double Example Program for isInfinite(double v)
/**
 * @author candidjava.com
 * @description: Returns true if this Double value is infinitely large in
 *               magnitude, false otherwise.
 */

public class Infinite {
	public static void main(String args[]) {
		double d = 12235;
		boolean m = Double.isInfinite(d / 1); // this method returns true if
						      // this Double value is
						      // infinitely large ,otherwise
						      // false.
		System.out.println(m);
	}
}

output:
false

Filed in: Z-A All Java Codes

Comments are closed.