An Introduction to Programming: Variable Manipulation
Created | Updated Mar 28, 2005
Variable Manipulation
Normal Variable Manipulation
String Variable Manipulation
Normal Variable Manipulation
Basic Numeric Manipulation
Symbol | Name | Example of Use |
+ | Add | Variable a+Variable b |
- | Subtract | Variable a-Variable b |
* | Multiply | Variable a*Variable b |
/ | Divide | Variable a/Variable b |
( | Bracket Open | |
) | Bracket Close | |
++ | Increment (Increase by one) | Variable a++ |
-- | Decrement (Decrease by one) | Variable a-- |
Advanced Numeric Manipulation
sqrt(Variable) | Square Root | |
pow(Variable a,Variable b) | To the Power of | Variable a to the power of Variable b |
Logical Manipulation
Variable a AND Variable b | AND |
| |||||||||||||||
Variable a OR Variable b | OR |
| |||||||||||||||
NOT Variable a | NOT |
| |||||||||||||||
Variable a XOR Variable b | XOR |
|
Precedence
1 [Done First] | () | ||
2 | ++ | -- | |
3 | * | / | % |
4 | + | - | |
5 | NOT | ||
6 | AND | ||
7 [Done Last] | OR |
String Variable Manipulation
Whole String Manipulation
UPPER(String a) | Change all Characters in String a to upper case(Character Strings) |
LOWER(String a) | Change all Characters in String a to lower case(Character Strings) |
Selective String Manipulation
substr(String a,Variable a,Variable b) | A string is created from String a starting at Variable a number of characters in, and Variable b characters long. |