Limit Integer between Min and Max

From Visuino
Revision as of 03:38, 15 August 2025 by Visuino (talk | contribs) (Created page with "Image:TArduinoLimitIntegerBetweenMinMax.png == Summary == Restricts an integer value to stay within a defined minimum and maximum range. == Description == The **Limit Integer between Min and Max** component ensures that the incoming integer signal remains between the specified **Min** and **Max** values. If the input is below **Min**, the output will be **Min**. If the input is above **Max**, the output will be **Max**. Values within the range pass through...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

File:TArduinoLimitIntegerBetweenMinMax.png

Summary

Restricts an integer value to stay within a defined minimum and maximum range.

Description

The **Limit Integer between Min and Max** component ensures that the incoming integer signal remains between the specified **Min** and **Max** values. If the input is below **Min**, the output will be **Min**. If the input is above **Max**, the output will be **Max**. Values within the range pass through unchanged.

Diagram:

Categories

Properties

  • Max – Maximum allowed integer value (default: `1000`).
  • Min – Minimum allowed integer value (default: `-1000`).

Pins

  • In – Integer input.
  • Out – Integer output clamped between **Min** and **Max**.