#Z12304. 浮点数向零舍入
浮点数向零舍入
Description
Input a single-precision floating-point number and round it towards zero to an integer.
Explanation: Rounding towards zero means that positive numbers are rounded down, and negative numbers are rounded up. Hint: You can use type casting to achieve this.
Input Format
A single-precision floating-point number.
Output Format
An integer, which is the result of rounding the input towards zero.
2.3
2