Code as follows: public class testing{ public static void main(String argv[]){ double ii=123456789.12345; System.out.println("ii="+ii); } } The output is: ii=1.2345678912345E8 But I want to get: ii=123456789.12345 How can I do it? Is it any function to solve it?