#P74. 【例14.2】 四舍六入五留双
【例14.2】 四舍六入五留双
Description
Input a real number and an integer .
Output the real number rounded to decimal places using the "round to even" method.
can have up to 30 decimal places.
The "round to even" method means that if the number is exactly 0.5, it is rounded to the nearest even number.
For example, when rounding to the nearest integer, 0.4 becomes 0, 0.5 becomes 0, 0.50001 becomes 1, 0.6 becomes 1, 1.5 becomes 2, and 2.5 becomes 2.
Input Format
Input consists of a single line with a floating-point number and an integer .
Output Format
Output a single line with a floating-point number representing the answer.
Sample
0.123456789 50.12346