What is the order of operator precedence from high to low in vb
What is the order of operator precedence from high to low in vb? I believe that many inexperienced people are at a loss about this, so this article summarizes the causes and solutions of the problem. Through this article, I hope you can solve this problem.
In VB, the priority of operation is from high to low: arithmetic operation, string operation, relational operation, logic operation. The priority decreases from top to bottom, with the highest priority at the top and the lowest priority for the comma operator. Operators with high priority are combined first, and operators with low priority are combined later, and operators on the same line have the same priority.
In VB, the priority of operation is from high to low: arithmetic operation, string operation, relational operation, logic operation.
The priority decreases from top to bottom, with the highest priority at the top and the lowest priority for the comma operator.
Operators with high priority are combined first, and operators with low priority are combined later, and operators on the same line have the same priority.
From high to low are:
Arithmetic operation:-(negative) ^ (power) * or /\ Mod (rounding) + or-
Character operator: + or & sibling
Relational operators: =, >, > =,