---
description: Maps a numeric value to a different range.
---

# Range

### Inputs

* `payload` (number) : The payload _must_ be a number. Anything else will try to be parsed into a number and rejected if that fails.

### Outputs

* `payload` (number) : The value mapped to the new range.

![](https://1551505950-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mkaq90Au3F8Kz0qIFzO%2Fuploads%2Fgit-blob-8ca555b677ea0a47ae64669f367486f9c4c62cff%2Fimage.png?alt=media)

This node will linearly scale the received value. By default, the result is not constrained to the range defined in the node.

_Scale and limit to target range_ means that the result will never be outside the range specified within the target range.

_Scale and wrap within the target range_ means that the result will be wrapped within the target range.

For example an input 0 - 10 mapped to 0 - 100.

| mode  | input | output |
| ----- | ----- | ------ |
| scale | 12    | 120    |
| limit | 12    | 100    |
| wrap  | 12    | 20     |
