 Integer
In this section, wherever the syntax includes <Number>, either Integer or Decimal data types may be used.
Corticon's Integer attribute operators are as follows:
 Name and Syntax Returns Description Equals (used as a comparison) = Boolean Returns a value of true if is the same as . Equals (used as an assignment) = Number Assigns the value of to the value of . The data type of must be expansive enough to accommodate . Not Equal To <> Boolean Returns a value of true if is not equal to . Less than < Boolean Returns a value of true if is less than . Greater than > Boolean Returns a value of true if is greater than . Less than or Equal to <= Boolean Returns a value of true if is less than or equal to . Greater than or Equal to >= Boolean Returns a value of true if is greater than or equal to . In (Range) attributeReference in [ |(rangeExpression)|] Boolean Returns a value of true if attributeReference is in the range of Integer values from..to, and where opening and closing parentheses ( )indicate exclusion of that limit and square brackets [ ] indicate inclusion of that limit. In (List) attributeReference in {listExpression} Boolean Returns a value of true if attributeReference is in the comma-delimited list of literal values, defined enumeration values, or - if in use - enumeration labels. Add + Number Returns the sum of and . The resulting data type is the more expansive of either or . For example, if an Integer value is added to a Decimal value, the resulting value will be a Decimal. See Precedence of rule operators. Subtract - Number Subtracts from . The resulting data type is the more expansive of either or . See Precedence of rule operators. Multiply * Number Returns the product of and . The resulting data type is the more expansive of either or . See Precedence of rule operators. Divide / Number Divides by . The resulting data type is the more expansive of either or . See Precedence of rule operators. Increment += Number Increments by . The data type of must accommodate the addition of . See Precedence of rule operators. Decrement -= Number Decrements by the value of . The data type of must accommodate the addition of . See Precedence of rule operators. .absVal Number Returns the absolute value of . If the is positive, itself is returned; if is negative, the negation of is returned. To Decimal .toDecimal Decimal Converts an attribute of type Integer to type Decimal. To String .toString String Converts an attribute of type Integer to type String. Maximum Value .max() Integer Returns the greater of and . Minimum Value .min() Integer Returns the lesser of and . Div .div() Integer Returns the whole number of times that fits within - any remainder is discarded. Mod .mod() Integer Returns the whole number remainder that results from dividing by . If the remainder is a fraction, then zero is returned. Logarithm (base 10) .log Decimal Returns the logarithm (base 10) of may not be zero. Logarithm (base x) .log() Decimal Returns the logarithm (base ) of may not be zero. Natural Logarithm .ln Decimal Returns the natural logarithm (base e) of may not be zero. isProbablePrime(certainty) .isProbablePrime (certainty:Integer) Boolean Returns true if this Integer is probably prime; false if definitely is not prime. gcd(val) .gcd(val:Integer) Integer Returns the greatest common divisor of the absolute value of this and the absolute value of val. negate .negate Integer Returns the negative value of this integer.