3:50 pm - Friday February 19, 9677

Math Example Program for ulp(double d)

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
/*Math Example Program for ulp(double d)*/
/**
 *@Author: CandidJava.com
 *@description:find ulp value using Ulp class
 */
public class Ulp {
	public static void main(String args[]) {
		double d = 60.5;// initialize the variable
		double ulpval = StrictMath.ulp(d);// calculate ulp value using math
											// class
		System.out.println("ULP VALUE:" + ulpval);// print ulpval value
	}
}

OUTPUT:
7.105e-15

Filed in: Z-A All Java Codes

Comments are closed.