> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ntop.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Clamp

<CardGroup cols={2}>
  <Card title="Scalar, Scalar, Scalar" href="#scalar-scalar-scalar" />

  <Card title="Scalar Field, Scalar Field, Scalar Field" href="#scalar-field-scalar-field-scalar-field" />
</CardGroup>

***

<h2 id="scalar-scalar-scalar">
  Scalar, Scalar, Scalar
</h2>

Clamp a scalar value between min and max. Values lower than min will clamp to min, and values greater than max will clamp to max.

### Inputs

| Name | Type | Description |
| - | - | - |
| Value | [Scalar](../../../../block-documentation/types/scalar) | Value to Clamp. |
| Min | [Scalar](../../../../block-documentation/types/scalar) | Min value to clamp with. |
| Max | [Scalar](../../../../block-documentation/types/scalar) | Max value to clamp with. |

### Outputs

| Type |
| - |
| [Scalar](../../../../block-documentation/types/scalar) |

***

<h2 id="scalar-field-scalar-field-scalar-field">
  Scalar Field, Scalar Field, Scalar Field
</h2>

Clamp values of a scalar field between min and max. Values lower than min will clamp to min, and values greater than max will clamp to max.

### Inputs

| Name | Type | Description |
| - | - | - |
| Value | [Scalar Field](../../../../block-documentation/types/scalar-field) | Field of values to clamp. |
| Min | [Scalar Field](../../../../block-documentation/types/scalar-field) | Min value to clamp with. |
| Max | [Scalar Field](../../../../block-documentation/types/scalar-field) | Max value to clamp with. |

### Outputs

| Type |
| - |
| [Scalar Field](../../../../block-documentation/types/scalar-field) |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.