average
Version:
Mathematical average. Sum of all values divided by the number of values provided.
16 lines (10 loc) • 341 B
Markdown
The matematical average, the result obtained by adding several amounts together and then dividing this total by the number of amounts; the mean.
```
var average = require('average');
var result = average([2, 5, 0, 1, 25, 7, 3, 0, 0, 10]);
console.log('The average for all the values is:', result);
```
MIT