Skip to main content

Number

The Number class contains a single numeric value, either integer or float. It is derived from the VisionElement base class.

Constructors

Empty constructor.

new Number(): Number;

Constructor with the initial numeric value.

new Number(value: number): Number;

Methods

isInteger()

Returns true if the number is an integer.

isInteger(): boolean;

isDouble()

Returns true if the number is a floating point value.

isDouble(): boolean;

Value

value

The numeric value.

value: number;