math.min
数のうち最小のものを返します。
シグネチャ
math.min(...values: number[]): number
パラメーター
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
...values | number[] | 必須 | 比較する数。 |
戻り値
number 計算結果の数。
例
return math.max(1, math.min(5, root + gap));数のうち最小のものを返します。
math.min(...values: number[]): number
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
...values | number[] | 必須 | 比較する数。 |
number 計算結果の数。
return math.max(1, math.min(5, root + gap));