The Lang Library contains fifteen functions. You can use these various functions to perform operations on integer and floating-point numbers, create random numbers, create absolute values, stop the current code execution, and determine support parameters.
The optional Float Library contains eight functions that perform related tasks on floating-point numbers.
The library and function names are case sensitive.
Syntax: Lang.abort(errorDescription)
Aborts the current code and returns control to the caller.
Syntax: Lang.abs(value)
Returns the absolute value.
Syntax: Lang.characterSet()
Returns the character set being supported.
Syntax: Lang.exit(value)
Ends the current code and returns control to the caller.
Syntax: Lang.float()
Determines if floating-point numeration is supported.
Syntax: Lang.isFloat(value)
Determines if a value can be converted to a floating-point.
Syntax: Lang.isInt(value)
Determines if a value can be converted to an integer.
Syntax: Lang.max(value1, value2)
Returns the maximum of two numbers.
Syntax: Lang.maxInt()
Returns the maximum recognized integer value.
Syntax: Lang.min(value1, value2)
Returns the minimum of two numbers.
Syntax: Lang.minInt
Returns the minimum recognized integer value.
Syntax: Lang.parseFloat(value)
Converts a string into a floating-point number.
Syntax: Lang.parseInt(value)
Converts a string into an integer.
Syntax: Lang.random(value)
Returns a random positive integer.
Syntax: Lang.seed(value)
Initializes a pseudo-random number sequence.