the initial number to begin the output range sequence from. defaults to 0
.
Optional
end: numberthe final exclusive number to end the output range sequence at. its value will not be in the last output number.
if left undefined
, then it will be assumed to be Number.POSITIVE_INFINITY
if step
is a positive number (default),
or it will become Number.NEGATIVE_INFINITY
if step
is a negative number.
defaults to undefined
.
a number, dictating how large each step from the start
to the end
should be. defaults to 1
.
an integer that specifies the number of decimal places to which the output
numbers should be rounded to, in order to nullify floating point arithmetic inaccuracy.
defaults to 6
(6 decimal places; i.e. rounds to the closest micro-number (10**(-6))).
the total number of elements that were outputted.
this function is the iterator version of rangeArray, mimicking python's
range
function.you can iterate indefinitely with this function if you set the end parameter to
undefined
, and then define the direction of the step increments with the step parameter. (a negativestep
will result in a decreasing sequence of numbers).Yields
a number in the sequence of the given range.
Example