#P253. 【例42.2】 数学课上
【例42.2】 数学课上
Description
In an interesting math class, the teacher asked the students: Given a floating-point number, how to determine which of the two adjacent integers it is closer to, and output the closer integer. Please program to output this number according to the rounding principle.
Input Format
A single line containing one number: n (0.0≤n≤100000.0), representing the floating-point number to be processed. The input floating-point number is guaranteed to have at most 8 decimal places.
Output Format
A single line containing one number, representing the integer that is closer to the input number.
Sample
4.49994