CInt Function 复制代码 代码如下: When the fractional part of a html' target='_blank'>value is exactly 0.5, the CInt function rounds to the closest even number. For example, 0.5 rounds to 0, 1.5 rounds to 2, and 3.5 rounds to 4. CInt differs from the Fix and Int functions, which truncate, rather than round, the fractional part of a number.
Int, Fix Functions 复制代码 代码如下: Both Int and Fix remove the fractional part of number and return the resulting integer value.
The difference between Int and Fix is that if number is negative, Int returns the first negative integer less than or equal to number, whereas Fix returns the first negative integer greater than or equal to number. For example, Int converts -8.4 to -9, and Fix converts -8.4 to -8.