List.SumList.Sum
構文Syntax
List.Sum(list as list, optional precision as nullable number) as any
バージョン情報About
リスト list
内の null 以外の値の合計を返します。Returns the sum of the non-null values in the list, list
. リスト内に null 以外の値がない場合は、null を返します。Returns null if there are no non-null values in the list.
例 1Example 1
リスト {1, 2, 3}
内の数の合計を求めます。Find the sum of the numbers in the list {1, 2, 3}
.
List.Sum({1, 2, 3})
6