public class N { public static void main(String[]args){ double - TopicsExpress



          

public class N { public static void main(String[]args){ double d=848575458.477997648; float f = (float)d; long l =(long)f; int i=(int)l; short s = (short)i; byte b= (byte)s; System.out.println(d); System.out.println(f); System.out.println(l); System.out.println(i); System.out.println(s); System.out.println(b); } } output: 8.485754584779977E8 8.4857549E8 848575488 848575488 15360 0 ....................................... why the ouput is coming like this..?????
Posted on: Tue, 04 Nov 2014 14:19:37 +0000

Trending Topics



Recently Viewed Topics




© 2015