Mean (Function) — Skript

Addon: Skript · Category: Function

Syntax

mean(numbers: objects) :: number

Description

Get the mean (average) of a list of numbers. You cannot get the mean of a set of numbers that includes infinity or NaN.

Examples

mean(1, 2, 3) = 2
mean(0, 5, 10) = 5
mean(13, 97, 376, 709) = 298.75

View source