3:29 pm - Saturday June 21, 7490

Double Example Program for doubleValue()

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
/**
@AUTHOR: candid java.com
@DESCRIPTION: coding for  convert into double value
*/

public class DoubleValue
{
  public static void main(String[] args)
  {
     Float f = 35.45f;
     double d = f.doubleValue(); //convert float value to double value
     System.out.println("double value:"+d);
  }
}

OUTPUT:

double value:35.45000076293945

BACK

Filed in: Z-A All Java Codes

Comments are closed.