Home  >  Article  >  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?

烟雨青岚
烟雨青岚Original
2020-07-01 16:26:4241375browse

In VB, the order of operation priority from high to low is: arithmetic operations, string operations, relational operations, and logical operations. The priorities decrease from top to bottom, with the topmost operator having the highest priority and the comma operator having the lowest priority. Operators with higher precedence are combined first, operators with lower precedence are combined later, and operators in the same line have the same priority.

What is the order of operator precedence from high to low in vb?

In VB, the order of operation priority from high to low is: arithmetic operations, string operations, relational operations, and logical operations.

The priorities decrease from top to bottom, with the top one having the highest priority and the comma operator having the lowest priority.

Operators with higher priorities are combined first, and operators with lower priorities are combined later. Operators in the same line have the same priority.

From high to low are:

Arithmetic operations: - (negative) ^ (power) * or / \ Mod (rounding method) or -

Character operations Symbol: or & sibling

Relational operators: =, >, >=, , Is sibling Like operator: Like

Logical operators: from high to low Not And Or Xor Eqv Imp

The string operators are as follows:

What is the order of operator precedence from high to low in vb?

For more related knowledge, please visitPHP中文网! !

The above is the detailed content of What is the order of operator precedence from high to low in vb?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn