Longs are positive and negative whole 64-bit unsigned numbers without decimals. If you need to work with decimals, use the Float data type.
To represent a long number in the code as a literal, suffix it with an “L”, for example, “Long l = 576460752303423488L;“
Constructors
Long()
Default constructor.
Long(Integer)
Pass a value to copy into a new object.
Long(Integer)
Pass a value to copy into a new object.
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.
Returns: CRMScript.Global.String
Example:
isNull()
Returns true if it has no value and false if it does.
Returns: CRMScript.Global.Bool
A NULL/NUL/NIL Long is different from zero, in that it is conceptually without a value. However, when a null Long is used naively, CRMScript is usually forgiving and interprets it as zero.
Example:
getHighInteger()
Returns the high 32-bit Integer of the Long.
Returns: CRMScript.Global.Integer
Example:
getLowInteger()
Returns the low 32-bit Integer of the Long.
Returns: CRMScript.Global.Integer
Example: