返回一組表達式中的平均值,以清單或兩個表達式的形式給出。 忽略空值。
彙總
avg(<parameter>)
支援的類型:
avg(<listInteger>)
avg(<listDecimal>)
avg(<decimal>,<decimal>)
avg(<decimal>,<integer>)
avg(<integer>,<decimal>)
avg(<integer>,<integer>)
返回十進位。
avg(@{BarBeacon.inventory},5)
avg([10,3,8])
返回7.0。
avg(10.2, 3)
返回6.6。