The Number object allows you to perform mathematical calculations in your script. These functions are all methods or properties of the Number object, which means that in the script they must be called as follows:
Number.functionName
This means, type the word Number followed by the name of one of the OpusScript functions listed below separated by a full stop, For example:
Number.MAX_VALUE
Number.toString()
Note:
Some of the Number functions have a constant value, such as, Number.MAX_VALUE because the value never changes. Other Number functions will evaluate an answer, such as, the Number.NaN function.
Hierarchy:
Only the specific functions listed under the Functions: heading below can be used with Number objects:
Class Hierarchy:
Number
Functions:
Returns the largest number that can be represented in OpusScript | |
Returnts the smallest number that can be represented in OpusScript | |
Returns a value that is "not a number" | |
Returns a value representing negative infinity | |
Returns a value representing positive infinity | |
Converts the Number object into a string | |
Returns the primitive value of the Number Object |