#P50. 练10.2 浮点数向零舍入
练10.2 浮点数向零舍入
Description
Input a floating-point number and round it towards zero to the nearest integer. Note: rounding towards zero means rounding down for positive numbers and rounding up for negative numbers.
Input Format
Input consists of a single floating-point number.
Output Format
Output an integer, which is the result of rounding the input towards zero.
Sample
2.32