Plus Operator
+ Operator
Description 1 of 5 (arithmetic addition):
The arithmetic addition of a first number and a second number.
note
ARITHMETIC OVERFLOW
This function is non-evaluable if the resultant value would exceed approximately +/- 1.8e308.
For example, adding together two very big numbers.
Returns:
Number
Parameters:
Parameter | Data Type | Description |
|---|---|---|
1 | Number | The first number. |
2 | Number | The second number. |
Example:
When using functions inside a field, remember the field brackets:
{LengthOfTerm + ExtendedTerm}
Expression | Result |
|---|---|
2.5 + 3.4999 | 5.9999 |
Description 2 of 5 (the date which is a number of days after a date):
This is equivalent to the function
DaysAfter
, and is the date which is so many whole days after the source date. If the number of days is positive then the resultant date will be after the source date.
If the number of days is negative then the resultant date will be before the source date.
Returns:
Date
Parameters:
Parameter | Data Type | Description |
|---|---|---|
1 | Date | The source date. |
2 | Whole Number | The number of whole days after. |
Examples:
Expression | Result |
|---|---|
Date( 1999, 12, 31 ) + 60 | Date( 2000, 2, 29 ) |
Date( 1999, 12, 31 ) + 61 | Date( 2000, 3, 1 ) |
Description 3 of 5 (the union of two lists):
This is equivalent to the function
Union
, and returns those members of the first list plus those members of the second with duplicates removed.Returns:
Any*
Parameters:
Parameter | Data Type | Description |
|---|---|---|
1 | Any* | The first list. |
2 | Any* | The second list. |
Examples:
Expression | Result |
|---|---|
List("a","b","c") + List("a","b","d","e") | List("a","b","c","d","e") |
List("a","a","b","c","c") + List("d","d","e") | List("a","b","c","d","e") |
Description 4 of 5 (the concatenation of two texts):
This is equivalent to the function
Concatenate
. The concatenation of the first text with the second text.
Returns:
Text
Parameters:
Parameter | Data Type | Description |
|---|---|---|
1 | Text | The first text. |
2 | Text | The second text. |
Examples:
Expression | Result |
|---|---|
"abc" + "de" | "abcde" |
"" + "de" | "de" |
"abc" + "" | "abc" |
Description 5 of 5 (the time which is a number of seconds after a time):
This is equivalent to the function
SecondsAfter
. The time which is so many whole seconds after the source time.
If the number of seconds is positive then the resultant time will be after the source time.
If the number of seconds is negative then the resultant time will be before the source time.
Returns:
Time
Parameters:
Parameter | Data Type | Description |
|---|---|---|
1 | Time | The source time. |
2 | Whole Number | The number of whole seconds after. |
Examples:
Expression | Result |
|---|---|
Time(11,58,59) + 60 | Time(11,59,59) |
Time(11,58,59) + 61 | Time(12,0,0) |
Time(23,58,59) + 61 | Time(0,0,0) |