#PCBBAY0000024. Ký pháp khoa học với E (Scientific Notation with E)
Ký pháp khoa học với E (Scientific Notation with E)
Scientific Notation with E
Version: Phuoc Hung OJ Extended
Problem Statement
Given a real number , display it in scientific notation using an uppercase E between the significand and exponent. Print exactly 3 digits after the decimal point in the significand; the exponent includes a + or - sign and at least two digits. Match Python 3 .3E formatting.
Input
One line contains .
Output
Print one line using Python 3 .3E scientific notation.
Subtasks
- Subtask 1 (100 points): and finite.
Examples
Example 1
Input
12345.6789
Output
1.235E+04
Explanation. For input 12345.6789, applying .3E formatting produces exactly 1.235E+04 (including any trailing zeros, separators or exponent characters).
Example 2
Input
0.0012345
Output
1.234E-03
Explanation. For input 0.0012345, applying .3E formatting produces exactly 1.234E-03 (including any trailing zeros, separators or exponent characters).
Example 3
Input
-987654.0
Output
-9.877E+05
Explanation. For input -987654.0, applying .3E formatting produces exactly -9.877E+05 (including any trailing zeros, separators or exponent characters).