CInt is rounded to get the even number closest to it. That is to say, when the decimal part is XXXX, it gets the even number closest to X.5XX.
For example, Cint (0.5) = 0; Cint (1.5) = 2; Cint (2.5) = 2; Cint (3.5) = 4
Int Is the integer function, which removes the decimal point. For example, Int (1.5) = 1...
This positioning is not accurate, and the test is missed. first: The Cint function does not consider Cint (0.51) = 1, Cint (2.51) = 3. second: the Int function does not take negative values into account: Int (-1.1) =-2, Int (-1.5) =-2, so I will summarize the following: int function: the number axis is rounded to the left. Cint function: rounds an integer, whether positive or negative. But *. 5 or-*. 5 is used to take the even value. But note: Cint (0.51) = 1, Cint (-0.51) is also equal to-1.
Summary:
Int function: rounded up to the left of the number axis.
Cint function: rounds an integer, whether positive or negative. But *. 5 or-*. 5 is used to take the even value.
Cint (0.5) = 0-> 0
Cint (0.51) = 1-> 1
Cint (1.5) = 2-> 2
Cint (2.5) = 2-> 2
Cint (2.51) = 3-> 3
Cint (2.6) = 3-> 3
Cint (2.62) = 3-> 3
Cint (3.5) = 4-> 4
Cint (3.3) = 3-> 3
Cint (1.2) = 1-> 1
Int (-1.1) =-2->-2
Int (-1.5) =-2->-2