Tuesday, October 5, 2010

Arithmetic Operators

Page : 1 2 3 4 5 6 7 8 9 10 11 12 13 14



Arithmetic operators are used to perform arithmetic operations that involve calculation of numeric values. The table below summarizes them:



Example for Arithmetic Operators

Dim a,b,c As Integer
a=10
b=7

Addition - c = a + b 17
Multiplication - c = a * b 70
Division - c = a / b 1.42857142
Modulus - c = a Mod b 3
Subtraction - c = a - b 3
Exponentation - c = a ^ b 10000000
Integer Division - c = a \ b 1