Skip to Main Content
Visual Basic 2015 Unleashed
book

Visual Basic 2015 Unleashed

by Alessandro Del Sole
July 2015
Intermediate to advanced content levelIntermediate to advanced
1300 pages
87h 27m
English
Sams
Content preview from Visual Basic 2015 Unleashed

Arithmetic Operators

Visual Basic 2015 provides some arithmetic operators, listed in Table 4.11.

Image

TABLE 4.11 Arithmetic Operators

The first three operators are self-explanatory, so I would like to focus on the other ones. As shown in Table 4.11, Visual Basic offers two symbols, the slash (/) and backslash (\), for division. The first one can be used in divisions between floating-point numbers (such as Double and Single types), and the second can be used only in divisions between integer numbers. Using the backslash is fast when you’re working with integers and truncates the result in case it is a floating-point number. The backslash accepts ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Beginning Visual Basic 2015

Beginning Visual Basic 2015

Bryan Newsome

Publisher Resources

ISBN: 9780134196664Purchase book