avg avg

リストまたは 2 つの式のいずれかで指定された一連の式の平均値を返します。null 値は無視されます。

カテゴリ

集計

関数の構文

avg(<parameter>)

パラメーター

サポートされているタイプ:

  • listInteger
  • listDecimal
  • 小数
  • 整数

シグネチャと戻り値のタイプ

avg(<listInteger>)

avg(<listDecimal>)

avg(<decimal>,<decimal>)

avg(<decimal>,<integer>)

avg(<integer>,<decimal>)

avg(<integer>,<integer>)

小数を返します。

avg(@event{BarBeacon.inventory},5)

avg([10,3,8])

7.0 を返します。

avg(10.2, 3)

6.6 を返します。

recommendation-more-help
b22c9c5d-9208-48f4-b874-1cefb8df4d76