SA-MP Forums Archive
>>> operator - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: >>> operator (/showthread.php?tid=323009)



>>> operator - Roko_foko - 04.03.2012

Can anyone explain to me what does this >>> operator?
Code:
format(nomeArquivo, MAX_CHARS >>> 2, arquivoLer);
Thank you in advance!


Re: >>> operator - fightaxe - 04.03.2012

I was wondering the same..


Re: >>> operator - T0pAz - 04.03.2012

>>> - Shift bits left to right. The shift operation is unsigned and the vacant bits of the result are filled with zeros.


Re: >>> operator - Vince - 04.03.2012

This is the logical right shift. Used to shift bits to the right with the specified amount. Only really useful if you're trying to remove the alpha channel from a color to use it as an embedded color.

Suppose you have 0xFF0000FF, which is red. Shifting this to right by 8 would yield 0xFF0000 which can be used as embedded color.