Integer Data Type

Integers are signed, numeric, whole 64bit numbers whose value ranges from -(2^63) to (2^63). Integers are the numerals with the highest precision (and the fastest processing speed) of all since they are never rounded.

Defining Integer Values

  • Pre-Processor: Specify the "Type" as "Integer" and set a default value as a number, such as 42;
  • Extraction: Specify the "Type" as "Integer". The field value will be extracted and treated as an integer.
  • JavaScript Expression: Set the desired value to any integer value.
    Example: record.fields["AnswerToEverything"] = 42;

Building Integer Values

Integers can be set through a few methods, all of which result into an actual integer result.

  • Direct attribution: Assign an integer value directly, such as 42,99593463712ordata.extract("TotalOrdered").
  • Mathematical operations: Assign the result of any mathematical operation. For example:22 + 51,3*6,10/5orsourceRecord.property.SubTotal. For more information on mathematics in JavaScript , see w3Schools - Mathematical Operators. For more advanced mathematical functions, see w3schools - Math Object.
When adding numbers that are not integers, for instance 4.5 + 1.2 , a round towards zero rounding is applied after the operation was made. In the previous example, the result, 5.7, is rounded to 5. In another example, -1.5 - 1 results in -2
 
  • Last Topic Update: 24/01/2017 09:32
  • Last Published: 7/6/2017 : 9:48 AM