|
|
#1 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Sep 2007
Location: Belgium
Posts: 4,897
Reputation: 1418
|
Hi
I was reading this page: http://wiki.sa-mp.com/wiki/Keywords:Initialisers when I came across some symbols that I haven't used yet: Symbols like <<= and >>>= etc. What are they called, what do they do and what are they useful for? Couldn't find anything about it. I hope someone can explain it.
|
|
|
|
|
#2 |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Dec 2006
Posts: 540
Reputation: 1
|
*= v *= e multiplies v with e
/= v /= e divides v by e. %= v %= e assigns the remainder of the division of v by e to v. >>= v >>= e shifts v arithmetically to the right by e bits. >>>= v >>>= e shifts v logically to the right by e bits. <<= v <<= e shifts v to the left by e bits. &= v &= e applies a bitwise “and” to v and e and assigns the result to v. |= v |= e applies a bitwise “or” to v and e and assigns the result to v. ^= v ^= e applies a bitwise “exclusive or” to v and e and assigns the result to v. |
|
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [2 Random Questions] About zcmd/dcmd and some math operators | [Marevin*] | Help Archive | 8 | 06/11/2009 02:00 PM |
| 2 operators that i don't understand | ғαιιοцт | Help Archive | 19 | 27/02/2009 03:50 PM |