Float And Double Questions and Answers

Recent IT Questions

1 - 1 of 1
<<PREVIOUS 1 NEXT>>

Difference between float and double?

float f=1.2f;  double d=1.2;  if(f>d)  {    System.out.println("Welcome");  }   Output: Welcome.  Why float is bigger than double while both have the same 1.2 value? Software/Hardware used: Java

View Answer   |  Sep 25 2009  6:10 AM GMT
Float and double, Java, Java programming
asked by AnandB

  5 pts.

1 - 1 of 1
<<PREVIOUS 1 NEXT>>