We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Find the average of numbers.
Similar: mean, median, modes, variance, range.
function mean(...xs) // xs: a list of numbers
const xmath = require('extra-math'); xmath.mean(1, 2); // → 1.5 xmath.mean(1, 2, 3); // → 2 xmath.mean(1, 2, 3, 4); // → 2.5