Changes

Visual Basic Arithmetic

27 bytes added, 14:02, 7 August 2007
Visual Basic Operator Precedence
The issue we have to address now is in what order these calculations will be performed. If Visual Basic were to evaluate the expression from left to right the result would be -3.33333. If the expression is evaluated from right to left the result would be 5.5. So, which way does Visual Basic evaluation expressions? The answer is neither of these options. Instead, Visual Basic evaluates expressions according to operator precendece. This is essentially a predefined order in which expressions are calculated which matches the standard algebraic order. The order used by Visual Basic is as follows:
<tableborder="1" cellspacing="0">
<TH>Artithmetic<th>Logical</th>
<tr>