 Decimal
In this section, wherever the syntax includes <Number>, either Integer or Decimal data types may be used.
Corticon's Decimal 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 . 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 Decimal 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. Exponent ** Number Raises to the power of . 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. Absolute Value .absVal Decimal Returns the absolute value of . If the is positive, itself is returned; if is negative, the negation of is returned. Floor .floor Integer Returns the largest (closest to positive infinity) Integer that is not greater than . Round .round Decimal Rounds to the nearest Integer. Round(n) .round() Decimal Rounds to the number of decimal places specified by . To Integer .toInteger Integer Converts an attribute of type Decimal to type Integer. Decimals will have the decimal point and fraction (those digits to the right of the decimal point) truncated. To String .toString String Converts an attribute of type Decimal to type string Maximum Value .max() Number Returns the greater of and . Minimum Value .min() Number Returns the lesser of and . 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 logarithm (base e) of . may not be zero. truncate .truncate Integer Truncates "this" Decimal value to an integer by removing the fractional portion. toString .fraction Decimal Extracts the fraction portion of "this" Decimal. movePoint(places) .movePoint (places:Integer) Decimal Moves the Decimal value's point moved n places where n can be a positive (moves right) or negative (moves left) value.