9:06 am - Friday May 25, 2018

Math Example Program for getExponent(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
//Math Example program for getExponent(Float f)
/**
@author:candidjava.com
@Description:Returns the exponent used in the representation of a float
*/
public class getExpo
 {
    public static void main(String[] args)
{
//initialize the float value
float f= 5.0f;
//returns the exponent value
float y= Math.getExponent(f);
System.out.println("Exponent1 = " + y);
 }
}

OUTPUT:
Exponent1=2.0

Filed in: Core Java Tutorial

Comments are closed.