fold
Fold input to a range within an upper and lower bound
fold(x, low, high): out1
Arguments:
Arguments
Name | Type | Default | Description |
---|---|---|---|
x | number | The input to be folded. | |
low | number | Sets the lower bound of the fold. | |
high | number | 1 | Sets the upper bound of the fold. |
Returns
Name | Type | Description |
---|---|---|
out1 | number | The folded output. |