import java.math.BigDecimal; class P05_FloatDouble { public static void main(String[] args) { float x1 = 0.98765987659876598765F; System.out.println(x1); //Shows 0.9876599 double x2 = 0.98765987659876598765D; //'D' is optional System.out.println(x2); //Shows 0.987659876598766 double x3 = 0.98765987659876598765; //'D' is optional System.out.println(x3); //Shows 0.987659876598766 double x4 = 98765987659876598765D; //'D' is optional System.out.println(x4); //Shows 9.87659876598766E19 } }