Objects>Var - General purpose objects>Properties>Arithmatic
Caravan Business Server>Help>Objects>Var - General purpose objects>
Properties
Arithmatic
|
Name
|
Arithmatic
|
Text
|
You can do addition, subtraction, multiplication or division of 2 values.
Find reminder (mod) or concatenate 2 or more strings.
|
Syntax
|
+ // addition - // substraction * // multiply / // divide % // mod + // concatenation
|
|
Caravan Business Server>Help>Objects>Var - General purpose objects>
Properties>
Use of Delim
|
Name
|
Use of Delim
|
Text
|
Delimiter between values
|
Sample
|
Example: x(delim)=" " x(value)="1 2 3 4 5 6 7 8 9";// splits string at space character x(value(00)) ;// array total x(value(01)); array index 01 x(value(02)); array index 02
Example: Var dd dd(delim)="," dd(dates)="1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31" dd(months)="Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec"
|
|
Caravan Business Server>Help>Objects>Var - General purpose objects>
Properties>
Decimal Numbers / Real Numbers
|
Name
|
Decimal Numbers / Real Numbers
|
Text
|
No syntax. Only Examples
|
Syntax
|
Example 1: // The resulting value is in x(myval) and is precise to three decimal points (same as the original precision). Var x x(myval)="10.123" x(myval(01))*="12"
Example 2: // The resulting value is an integer (458) stored in x(myval). var x x(myval)="10"; x(myval(01))*="45.899"
Example 3: //One can control the precision of the calulation by startiing with number which has the required precision as : var x x(myval)="0.000"; x(myval(01))+=some(othervalue) x(myval(01))/="45.899"
|
|
Home
Back
|
|