## Visual Basic Mathematics Tutorials

Some people think you have to use a special language for mathematics. Not so! Computers are just big calculators right, so of course a programming language like Visual Basic allows you to do mathematical operations. These VB6 show you how to do simple math functions and also how to do very complex math operations in your programs.

• VB's arithmetic operators allow you to actually do things with numbers. You have all the basics (like you'd find on your calculator) plus many more advanced operators at your disposal.
• In VB assignments are very easy to use. However, this tutorial explains all the details of what VB does when you use the simple = statement and gives examples of valid and invalid assignments.
• Learn how to use VB6 to convert numbers that are in different bases. For example convert a decimal to a hexadecimal or to octal.
• This tutorial shows you how to use the Visual Basic Math, Financial, and Boolean functions. It has examples for Abs, Atn, Cos, Exp, Fix, Int, Log, Round, Rnd, Sgn, Sin, Sqr, and Tan VB6 functions.
• This Visual Basic Tutorial explains how you can format Numbers, Currency, and percents using VB6 Format functions.
• Binary is sometimes a confusing thing, but if you use binary operators you can store a lot more data in a simple integer. See how this can be used to store properties for game characters.
• This Visual Basic 6 tutorial shows how to select objects in a 3D space using Microsoft DirectX 8 - Very useful for any 3D game development.
• In a good game we need our enemies to seek after the main character (like pacman and the ghosts) or we need them to flee (like the ghosts when pacman eats a pill).
• Games aren't much fun without collisions. Ships collide into astroids little mushrooms collide into mario. We must know how to detect these collisions - and it turns out to be pretty easy.
• Many times in a game you want a bunch of objects to move as if they are a flock. It is not too complicated with a little math to make this happen.
• Sometimes all you need is some simple encryption so users don't easily see something you don't want them to. Learn how you can do that with the XOR function.

If you enjoyed this post, subscribe for updates (it's free)