Number - Overview

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

Hierarchy of objects in Opus

Functions:

MAX_VALUE

Returns the largest number that can be represented in OpusScript

MIN_VALUE

Returnts the smallest number that can be represented in OpusScript

NaN

Returns a value that is "not a number"

NEGATIVE_INFINITY

Returns a value representing negative infinity

POSITIVE_INFINITY

Returns a value representing positive infinity

toString

Converts the Number object into a string

valueOf

Returns the primitive value of the Number Object