|
-
Mar 4th, 2001, 01:11 PM
#1
Thread Starter
Fanatic Member
I have a few questions on operator presedence that i need confirming.
I have the following operators. The lower the number after the operator, the higher the presedence.
Equals: "=" 0
Is equal to: "==" 1
Not equal to: "!=" 1
Greater than or equal to: ">=" 1
Less than or equal to: "<=" 1
Less than: "<" 1
More than: ">" 1
Power: "^" 2
Multiply: "*" 3
Division: "/" 3
Integer Division: "\" 3
Mod "%" 3
And "&" 4
Or "|" 4
Addition "+" 4
Minus "-" 4
What i need to know is this.
1. Is the 'integer division operator' (\) of equal presedence to "/" and "*"? (as i assume it is)
2. I am assuming that '&' and "|" are of the same presedence as "+" and "-", and that "%" is of the same presedence as "/" and "*". Is this correct?
1. Basically, are they in the correct order of presedence? 
Any contributions appreciated. Thanks in advance.
Later
Digital-X-Treme
Contact me on MSN Messenger: [email protected]
[VBCODE]Debug.Print Round(((1097) - ((55 ^ 5 + 311 ^ 3 - 11 ^ 3) _
/ (68 ^ 5))) ^ (1 / 7), 13)[/VBCODE]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|