That division statement is not equivalent in .NET because, for operands of integer type, the / operator returns an integer, consisting of the quotient rounded towards zero.
Consider the following examples:
VB6 Code
The result in VB6 is 3.
.NET Code
The result in .NET is 2.
To obtain a floating-point quotient, one of the operands should be cast as float, double, or decimal type:
.NET Code
The result with the modifications is 3.
The code is now equivalent. Notice the result should be converted to an integer.