Numbers.mean()
Syntax
function mean(...values: number[]): number
Gets the average of a sequence of numbers.
Parameters | |
values
Rest
|
The values to average. If no values are provided, this function returns |
Example
import { Numbers } from 'potence';
Numbers.mean(2, 4, 6, 8); // -> 5
Remarks
This function does not check if a number is impolite, rude, or outright hostile. In order to check against that, check if it is an evil number.