跳至主要内容

List.Product

傳回清單中數字的乘積。

Syntax

List.Product(
numbersList as list,
optional precision as Precision.Type
) as number

Remarks

傳回清單 numbersList 中非 null 數字的乘積。如果清單中沒有非 Null 值,則傳回 Null。

Examples

Example #1

找出清單 {1, 2, 3, 3, 4, 5, 5} 中數字的乘積。

List.Product({1, 2, 3, 3, 4, 5, 5})

Result:

1800

Category

List.Numerics