Have a look at the follwoing VB-code. The first MsgBox shows the number 2
while the second one 6. WHY? How come 2.5 is rounded off to 2 and 5.5 is
rounded off to 6??
Dim i As Integer = 5 / 2
MsgBox(i)
Dim j As Integer = 11 / 2
MsgBox(j)
while the second one 6. WHY? How come 2.5 is rounded off to 2 and 5.5 is
rounded off to 6??
Dim i As Integer = 5 / 2
MsgBox(i)
Dim j As Integer = 11 / 2
MsgBox(j)
Comment