레퍼런스 constrain()

constrain()

최솟값과 최댓값 사이로 숫자를 제한합니다.

예제

구문

constrain(n, low, high)

매개변수

n
Number:

제한할 숫자

low
Number:

최소 한도

high
Number:

최대 한도

Returns

Number: 제한한 숫자
This page is generated from the comments in src/math/calculation.js . Please feel free to edit it and submit a pull request!

관련 레퍼런스