リファレンス constrain()

constrain()

数値を最小値と最大値の間に制限します。

実例

シンタックス

constrain(n, low, high)

パラメーター

n
Number:

制限する数値。

low
Number:

最小値。

high
Number:

最大値。

リターン

Number: 制限された数値。
This page is generated from the comments in src/math/calculation.js . Please feel free to edit it and submit a pull request!

関連するリファレンス