VB.NET vs C# integer division [duplicate]
When you look at the IL-code that those two snippets produce, you’ll realize that VB.NET first converts the integer values to doubles, applies the division and then rounds the result before it’s converted back to int32 and stored in y. C# does none of that. VB.NET IL Code: IL_0000: ldc.i4.s 10 IL_0002: stloc.1 IL_0003: ldc.i4.s … Read more