repeat

infix fun Number.repeat(length: Number): Double

Loops the value, so that it is never larger than length and never smaller than 0.

Return

The looped value.

Parameters

length

The length of the loop.