8:40 pm - Thursday April 25, 2019

Math Example Program for signum(float f)

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

output:
signum value is:-1.0

Filed in: Z-A All Java Codes

Comments are closed.