8:31 pm - Saturday April 20, 2019

Math Example Program for signum(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
//sample program of signum value of double  value
/**
 * @author:candid.java
 * @description:find signum value of double value
 **/
class Signum {
	public static void main(String args[]) {
		double d1 = 7689099;// assign double value
		System.out.println("signum value is" + Math.signum(d1));
		// find signum function of double value using math.signum() method.
	}
}

output:
signum value is 1.0

Filed in: Z-A All Java Codes

Comments are closed.