34,333
edits
Changes
→Visual Basic Exponentiation
intValue = 10 ^ 3
</pre>
== Visual Basic Modulus Arithmetic ==
Modulus involves the division of two numbers and obtaining the remainder of that division. Modulus calculations are performed in Visual Basic using the ''Mod'' keyword. For example:
<pre>
10 Mod 2 - returns 0
10 Mod 4 - returns 2
12 Mod 5 - returns 2
</pre>