#PCBBAY0000015. In số thực với ba chữ số thập phân (Print Three Decimal Places)
In số thực với ba chữ số thập phân (Print Three Decimal Places)
Print Three Decimal Places
Version: Phuoc Hung OJ Extended
Problem Statement
Given a real number , display it in fixed-point notation with exactly 3 digits after the decimal point, including trailing zeros. The output must match Python 3 .3f formatting of the parsed float.
Input
The only input line contains a line contains .
Output
Print one line with .3f.
Subtasks
- Subtask 1 (100 points): .
Examples
Example 1
Input
8
Output
8.000
Explanation. For input 8, applying .3f formatting produces exactly 8.000 (including any trailing zeros, separators or exponent characters).
Example 2
Input
2.7182818
Output
2.718
Explanation. For input 2.7182818, applying .3f formatting produces exactly 2.718 (including any trailing zeros, separators or exponent characters).
Example 3
Input
-12.3456
Output
-12.346
Explanation. For input -12.3456, applying .3f formatting produces exactly -12.346 (including any trailing zeros, separators or exponent characters).