#PCBBAY0000023. 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 a lowercase 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).