Jump to navigation

Class: TRange

Numbas.jme.types.TRange

new TRange(range)

A range of numerical values - either discrete or continuous.

Parameters:
Name Type Description
range Array.<number>

[start,end,step]

Properties:
Name Type Description
value Array.<number>

[start,end,step]

size number

The number of values in the range (if it's discrete, undefined otherwise).

start number

The lower bound of the range.

end number

The upper bound of the range.

step number

The difference between elements in the range.

type string

"range"

Source: