数値の並びの中で最大の値を返します。

1つのパラメータを持つmax()のバージョンは、それを数値の配列として解釈し、 最大の数値を返します。

2つ以上のパラメータを持つmax()のバージョンは、それらを 個別の数値として解釈し、最大の数値を返します。

実例

シンタックス

max(n0, n1)
max(nums)

パラメーター

n0
Number:

比較する最初の数値。

n1
Number:

比較する2番目の数値。

nums
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!

関連するリファレンス