I have a double number like 223.45654543434 and I need to show it like 0.223x10e+2.
223.45654543434
0.223x10e+2
How can I do this in Java?
System.out.println(String.format("%6.3e",223.45654543434));
results in
2.235e+02
which is the closest I get.
more info : http://java.sun.com/j2se/1.5.0/docs/api/java/util/Formatter.html#syntax
1.4m articles
1.4m replys
5 comments
57.0k users