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: