[Tutorial] Arithmetic Symbols.
#1

Arithmetic Operators
These are operators used everyday, or at least most of them are. In SA:MP's case being used inside PAWN, they are probably used like every other piece of code, used for calculating different things such as height, width, length and position. Math in these languages are common and are used for various items!


Operator|Definition|Example
+|Addition: Increasing numbers resulting with a sum.|5 + 5 = 10
-|Subtraction: Decreasing numbers resulting with a difference.|10 - 5 = 5
/|Division: Decreasing numbers resulting with a quotient.|10 / 2 = 5
*|Multiplication: Increasing numbers resulting with a product.|5 * 2 = 10
>|Greater than: Used to compare two values; the left value is being stated as larger.|10 > 2
<|Less than: Used to compare two values; the right value is being stated as larger.|2 < 10
>=|Greater than or equal to: Same as '>' but accepts numbers that are also equal to the same value.|x = 10; x >= 10
<=|Less than or equal to: Same as '<' but accepts numbers that are also equal to the same value.|x = 10; x <= 10
Thank you for taking time to read this, and please reply to the topic on any suggestions / errors I have made in this topic! I for sure don't know everything, and so I'm just doing my best when learning new things and putting this up for other people to learn from.
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)