Constructors
Integer()
Integer(Integer)
Integer(String)
Methods
toString()
Converts a numeric value to its string representation. One of the most frequently used methods, typically when you are going to output something.toBool()
Converts a numeric value to its boolean representation. Returns false if the integer is zero, otherwise true.abs()
Converts a numeric value to its absolute value (the non-negative value of the number without regarding the sign). One of the most frequently used methods, typically when you are going to output something.toHex()
Converts an Integer to a hexadecimal string.By default, it converts the value of the current object. You can optionally pass a specific value to convert. (See below)
toHex(Integer)
Converts an Integer to a hexadecimal string. Same as above except you write toHex(i) rather than i.toHex().isNull()
Returns true if it has no value and false if it does.A NULL/NUL/NIL Integer is different from zero, in that it is conceptually without a value. However, when a null Integer is used naively, CRMScript is usually forgiving and interprets it as zero.