Legal Information
PC Knowledge Base - Operators in Visual Basic

Good Knowledge Is Good2Use

In order to compute inputs from users and to generate results, we need to use various mathematical operators. In Visual Basic, except for + and -, the symbols for the operators are different from normal mathematical operators,as shown below.
OperatorMathematical functionExample
^Exponential2^4=16
*Multiplication4*3=12
/Division12/4=3
ModModulus(return the remainder from an integer division)15 Mod 4=3
\Integer Division(discards the decimal places)19\4=4
+ or &String concatenation"Visual"&"Basic"="Visual Basic"

Example

Search Knowledge Base Feedback
If you like our web site refer a friend.
Your friends name.
Your friends email address.
Your Name
Your Email Address


© Copyright 1998-1999 GOOD2USE