Java Double.toHexString(double d)
Syntax
Double.toHexString(double d) has the following syntax.
public static String toHexString(double d)
Example
In the following code shows how to use Double.toHexString(double d) method.
public class Main {
public static void main(String[] args) {
/* w w w . ja v a2s .c o m*/
System.out.println(Double.toHexString(1.2));
}
}
The output: