How is this not a built-in function already?
1 | clamp(x, xlo, xhi)
|
x |
Vector of values to clamp |
xlo |
Lower end of the range |
xhi |
Upper end of the range |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.