[Tutorial] Arithmetic Symbols.
#23

Quote:
Originally Posted by Y_Less
View Post
Yes I do know a place, but you already said it. pawn-lang.pdf is a WONDERFUL document, I don't know why it isn't included with the Windows server any more.
You're the best Just learnt some new things that you can do with 'print(msg);'

Code:
\a’ Audible alarm (beep)
’\b’ Backspace
’\e’ Escape
’\f’ Form feed
’\n’ New-line
’\r’ Carriage Return
’\t’ Horizontal tab
’\v’ Vertical tab
’\\’ \ the escape character
’\’’ ’ single quote
’\"’ " double quote
’\% % percent sign
To some definations found could help:

Code:
*= 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.
= e1 == e2
results in a logical “true” if e1 is equal to e2.
!= e1 != e2
results in a logical “true” if e1 differs from e2.
Note: the following operators may be “chained”, as in the expression
“e1 <= e2 <= e3”, with the semantics that the result is “1”
if all individual comparisons hold and “0” otherwise.
< e1 < e2
results in a logical “true” if e1 is smaller than e2.
Pawn_Language_Guide.pdf is amazing.
Reply


Messages In This Thread
Arithmetic Operators - by Toni - 09.09.2010, 02:25
Re: Arithmetic Symbols. - by Kyosaur - 09.09.2010, 02:31
Re: Arithmetic Symbols. - by Toni - 09.09.2010, 02:33
Re: Arithmetic Symbols. - by willsuckformoney - 09.09.2010, 02:34
Re: Arithmetic Symbols. - by Calgon - 09.09.2010, 02:37
Re: Arithmetic Symbols. - by Toni - 09.09.2010, 02:37
Re: Arithmetic Symbols. - by Kyosaur - 09.09.2010, 02:40
Re: Arithmetic Symbols. - by Toni - 09.09.2010, 02:42
Re: Arithmetic Symbols. - by Calgon - 09.09.2010, 02:46
Re: Arithmetic Symbols. - by Kyosaur - 09.09.2010, 03:03
Re: Arithmetic Symbols. - by dirkblok - 09.09.2010, 14:49
Re: Arithmetic Symbols. - by Hiddos - 09.09.2010, 15:31
Re: Arithmetic Symbols. - by Y_Less - 09.09.2010, 15:54
Re: Arithmetic Symbols. - by Kyosaur - 09.09.2010, 17:06
Re: Arithmetic Symbols. - by Toni - 09.09.2010, 19:47
Re: Arithmetic Symbols. - by MicroD - 22.08.2011, 12:18
Re: Arithmetic Symbols. - by Darnell - 22.08.2011, 12:23
Re: Arithmetic Symbols. - by Adil - 22.08.2011, 12:33
Re: Arithmetic Symbols. - by MicroD - 22.08.2011, 12:57
Re: Arithmetic Symbols. - by Naruto_Emilio - 23.08.2011, 02:58
Re: Arithmetic Symbols. - by Lorenc_ - 23.08.2011, 08:45
Re: Arithmetic Symbols. - by Y_Less - 23.08.2011, 09:34
Re: Arithmetic Symbols. - by Lorenc_ - 23.08.2011, 09:52
Re: Arithmetic Symbols. - by Edvin - 23.08.2011, 10:24

Forum Jump:


Users browsing this thread: 4 Guest(s)