Before divisibility in VB, the numbers on both sides will be rounded according to the following rules, and the result is also an integer.
Rounding rule:
1.
If the integer part is even and the decimal part is 0.5, then the number rounded by the system is equal to the integer part.
If the decimal part is greater than 0.5, it will be carried, and if it is less than 0.5, it will be directly removed;
2.
If the integer part is odd, it is rounded.
For example:
1.2
The integer before operation is 1.
1.6
Round to 2 before operation.
1.5
Round to 3 before operation.
2.5
Round to 2 before operation.
2.6
Round to 3 before operation.
That is 5\5. 1.
be qualified for sth
5\5
So the result is 1.
50/5 1 is less than 1, and the integer part is not 0, so the result is 0.