CJCoding With Joseph

Scientific Notation

Use System.out.printf with the %e conversion to print the double 12345.678 in scientific notation with the default 6 digits after the decimal point, followed by %n. The exact output is:

1.234568e+04

Java rounds to 6 decimals and uses a two-digit signed exponent.

Expected Output:

1.234568e+04
Topics:
Printing
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท Ctrl+Space to expand shortcuts (sysout, psvm, fori)

Your Output

Run your code to see the output here...

Test Cases

Run your code to see test case results.