Wednesday, February 25, 2009

operaters

Arithmetic Operators
Arithmetic operators are used for mathematical expressions.
The given table shows various arithmetic operators and their description:
Operators Symbol Description of Symbol
Subtraction - Subtracts two operands (val1-val2)
Addition + Adds two operands (val1-val2)
Multiplication * Multiply two operands (val1*val2)
Division / Divides 2 operands (val1/val2)
Negation ~ Negates the operand
Modulo Mod Gives the remainder after division (Val1 mod Val2)
String Concatenation & Concatenates two strings (val1 & val2)
Exponentiation ^ Raises the first operands to the power of second operand (val1^val2)

No comments: