Constrains a number between a minimum and maximum value.
示例
语法
constrain(n, low, high)
参数
n
Number:
number to constrain.
low
Number:
minimum limit.
high
Number:
maximum limit.
返回值
Number: constrained number.
This page is generated from the comments in src/math/calculation.js . Please feel free to edit it and submit a pull request!