Basic usage and examples
Modules - API
Indices
Clamp value to range.
Clamp x to the closed interval [lo, hi].
x (float) – Value to clamp.
lo (float) – Lower bound.
hi (float) – Upper bound.
Clamped value.
float
Note
To prevent data type changes arguments should not mix int and float values.
int