Skip to content
Math & Text average

$average — Average of the given numbers, as a real decimal whatever $enableDecimals says.

Average of the given numbers, as a real decimal whatever `$enableDecimals` says.

Syntax

$average[number;...]

Parameters

  • number, … (number, required) — One or more numbers.

Return Value

  • string.

Usage

$average[1;2;4] → "2.333333333333"

Example

$sendMessage[$average[10;15;20]]

Try it

Paste an example into the playground to preview its message (functions that act on Discord are not run), or build the same thing with blocks.