Java tutorial
import java.text.DecimalFormat; public class Main { public static void main(String args[]) { System.out.println(new DecimalFormat("000000E0").format(123123)); } } //123123E0