| You are here: | About>Computing & Technology>Visual Basic |
![]() | Visual Basic |
Chapter 5 - VB.NET Language and Syntax - Part 2Examples of the Math OperatorsA few examples of the use of math operators:
Although it's based on VB 6 rather than VB.NET, you can see how remainder division is used to calculate the row and column position in the About Visual Basic article Programming The Tic Tac Toe Game. A VB.NET version of this program is shown later in this tutorial. If you do find yourself doing a lot of mathematical programming, you'll discover that the fundamental math functions take just too much time and code to use. Who wants to repeat the calculation of the trigonometry calculation of the square root in your code! Object Oriented Programming to the rescue! The .NET Framework includes the System.Math library so you don't have to and the book's explanation of how to use it is great! But again, the book is just a little bit incomplete ... see why on the next page.
|
Las Vegas on a BudgetFind a BargainHotel DealsCheap EatsFree AttractionsEntertainment for Less |
All Topics | Email Article | | | ![]() |
| Advertising Info | News & Events | Work at About | SiteMap | Reprints | Help | Our Story | Be a Guide |
| User Agreement | Ethics Policy | Patent Info. | Privacy Policy | ©2008 About, Inc., A part of The New York Times Company. All rights reserved. |


