|  | Plus (For modes 2D, 3D, Console) |  Show exampleHide example | Addition operator. Both binary and unary operator. |
Unary + is defined for all numeric types. Result of this operation is the original value.
Binary + is defined for numeric and string types. When both operands are numeric, result is typical addition of their values.
When at least one of the operands is string, the remaining one is converted into string and the result is junction of two strings into one.
|
|
|  | Minus (For modes 2D, 3D, Console) |  Show exampleHide example | Subtraction operator. Both binary and unary operator. |
Unary - is defined for all numeric types. Result of this operation is opposite value to the original one.
Binary - is defined for all numeric types. Result of this operation is typical subtraction of the operands.
|
|
|  | Multiply (For modes 2D, 3D, Console) |  Show exampleHide example | Result is classic product. | Writes to the output window strings created from results of five chosen mathematical operations (addition, subtraction, division, multiplying and modulo operation). | | |
|
|
|  | Modulus (For modes 2D, 3D, Console) |  Show exampleHide example | Modulo is remainder after division of the left expression by the right expression. | Writes to the output window strings created from results of five chosen mathematical operations (addition, subtraction, division, multiplying and modulo operation). | | |
|
|
|  | Increment (For modes 2D, 3D, Console) |  Show exampleHide example | Increase given operand by 1. | Creates new variable i, in which adds number 0. Writes the variable i to the output window, increments it by 1 and again writes it to the output window. Then adds to the variable i value 0, increments it by 1 and two times writes it to the output window. | | |
|
|
|  | Decrement (For modes 2D, 3D, Console) |  Show exampleHide example | Decrease given operand by 1. | Sets 1 to variable i. Then writes to the output window value of variable i, decrement it by one and again writes its value. Sets value 1 to variable i once more, decrement it by one and two times writes it to the output window. | | |
|
|
Did you find this information useful?
Documentation of SGP Baltie 4 C# Send us comments on this topic by this form
©1978-2010 SGP SystemsParent page | Previous page | Next page |