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.
the output is:
If you enjoyed this post then why not add us on Google+? Add us to your Circles
Liked it! Share this Tutorial