The CInt is rounded to the nearest even number, which means that when the decimal part is 0.5XXXX, it takes the nearest even to the x.5xx.
such as Cint (0.5) =0; Cint (1.5) =2; Cint (2.5) =2; Cint (3.5) =4
An int is an integer function that removes the decimal point part. such as int (1.5) =1 ...
This positioning is not accurate, according to the test of the angle is leakage. First: The Cint function does not take into account the situation of Cint (0.51) =1,cint (2.51) =3. The second: The INT function does not take into account the case of negative numbers: Int ( -1.1) =-2,int (-1.5) =-2, so I conclude as follows: Int function: On the axis to the left rounding. CInt function: Rounded rounding, regardless of positive or negative values. However, when *.5 or-*.5, the number is taken as a couple. But note: Cint (0.51) =1,cint (-0.51) is equal to 1.
Summarize:
int function: To the left rounding on a axis.
CInt function: Rounded rounding, regardless of positive or negative values. However, when *.5 or-*.5, the number is taken as a couple.
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