W3cubDocs

/Nushell

math avg for math

Returns the average of a list of numbers.

Signature

> math avg {flags}

Input/output types:

input output
list<duration> duration
list<filesize> filesize
list<number> number

Examples

Compute the average of a list of numbers

> [-50100.025] |math avg
25

Copyright © 2019–2023 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/math_avg.html