import java.text.DecimalFormat; import java.text.NumberFormat; public class Main { public static void main(String args[]) { NumberFormat formatter = new DecimalFormat(); int maxinteger = Integer.MAX_VALUE; formatter = new DecimalFormat("0.######E0"); System.out.println(formatter.format(maxinteger)); } } //2.147484E9