Online Training Spring Hibernate Training in Delhi R Programming Training Course Big Data and Hadoop Training Java Training

java.lang.String.valueOf(double dnum)

The valueof(double dnum), is the Java String Class method, which creats and holds the double value in String.

Ads

The valueof(double dnum), is the Java String Class method, which creats and holds the double value in String. And the "dnum" converts the double value to String. See the example below...

a simple example of valueOf(double dnum) method in Java.

public static void main(String[] args)
{
String Str = String.valueOf(8.16);

// double values.
System.out.println(Str);

  }
  }

the output is:
3.14

Advertisements

Share on Google+Share on Google+

java.lang.String.valueOf(double dnum)

Posted on: February 16, 2005 If you enjoyed this post then why not add us on Google+? Add us to your Circles

Advertisements

 

Discuss: java.lang.String.valueOf(double dnum)  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments:0

Ads

 

Ads