June 2006
Intermediate to advanced
1344 pages
42h 52m
English
The arithmetic operators are summarized in Fig. 3.19. The asterisk (*) indicates multiplication, and the keyword Mod represents the Mod operator (also known as the modulus or modulo operator), which will be discussed shortly. Most of the arithmetic operators in Fig. 3.19 are binary operators. For example, the expression sum + value contains the binary operator + and the two operands sum and value. Visual Basic also provides unary operators that take only one operand. For example, unary versions of plus (+) and minus (–) are provided, so that programmers can write expressions such as +9 and –19.
| Visual Basic operation | Arithmetic operator | Algebraic expression | Visual Basic expression |
|---|---|---|---|
| Addition | + | f + 7 ... |
Read now
Unlock full access