This commit is contained in:
Joel Wetzell
2026-05-17 21:12:04 -05:00
parent 69bc31d3f1
commit 8e6cd58006
82 changed files with 642 additions and 450 deletions
+9 -7
View File
@@ -1,21 +1,23 @@
---
title: Scale Int
sidebar:
label: Scale
order: 3
label: Scale
order: 3
---
This processor will scale an integer value from one range to another. This processor will return an error if the message being processed is not an integer or if the parameters are not valid (e.g. if `inMin` is greater than or equal to `inMax`, etc.).
- **type**: `int.scale`
- **params**:
- **inMin**: the minimum value of the input range
- **inMax**: the maximum value of the input range
- **outMin**: the minimum value of the output range
- **outMax**: the maximum value of the output range
- **inMin**: the minimum value of the input range
- **inMax**: the maximum value of the input range
- **outMin**: the minimum value of the output range
- **outMax**: the maximum value of the output range
### Example
Scale an integer value from the range 0-255 to the range 0-100
```yaml
- type: int.scale
params:
@@ -23,4 +25,4 @@ Scale an integer value from the range 0-255 to the range 0-100
inMax: 255
outMin: 0
outMax: 100
```
```