> For the complete documentation index, see [llms.txt](https://eashan-vytla.gitbook.io/mybotsdk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://eashan-vytla.gitbook.io/mybotsdk/robot.rangeclip.md).

# Robot.RangeClip

This function can be used to clip a value to a minimum and maximum threshold. For example, if I have 50, but I only want a value to 1.0, then use Robot.RangeClip(50, 1.0, -1.0). This will return 1.0.
