Scale (Linear Interpolation)
Category: Arithmetic Box Functions
Linearly maps an integer from an input range to an integer output range. Values outside the input range are limited to the nearest boundary; equal IN_MIN and IN_MAX stores OUT_MIN.
Syntax: SCALE D0 0 1023 R0 0 100
| Run condition | Before | Command entered | Expected result |
|---|---|---|---|
| Left condition ON | D0=1023 | SCALE D0 0 1023 R0 0 100 | R0=100.0 |