I have this code I need to explain and the Mod operator has confused me, MSDN has a page on it and I cannot understand it clearly. I have included a section of code below if you could refer to it in your answer, thanks.
number1 = (input1/ 10) - 0.5
number2 = input2 Mod 10
Result = number1 + number2
Mod
in VB.NET is the Modulo operation. It returns the remainder when one number is divided by another.
For example, if you divided 4 by 2, your mod result would be 0 (no remainder). If you divided 5 by 2, your mod result would be 1.
Explanation of the Modulo operation
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With