Using Math Operations
Processing numerical data is one of the key activities of many computer programs. Mathematical operations determine customer bills, interest due on savings or credit card balances, average scores for class tests, and many other bits of information. Visual Basic supports a number of different math operators that you can use in program statements. These operations and the Visual Basic symbol for each operation are summarized in Table 6.5. The operations are then described in detail in the following sections.
Operation | Operator |
---|---|
Addition | + |
Subtraction | - |
Multiplication | * |
Division | / |
Integer division | \ |
Modulus | Mod |
Exponentiation | ^ |
In Visual Basic, you use mathematical ...
Get Special Edition Using Microsoft® Visual Basic® .NET now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.