Calculates the difference between maximum and minimum values in an array of Big numbers
Array of Big numbers to calculate range from
The range (max - min) of the values
If array is empty
const numbers = [ new Big('10.5'), new Big('2.3'), new Big('15.7')];const range = variance(numbers); // Returns Big('13.4') (15.7 - 2.3) Copy
const numbers = [ new Big('10.5'), new Big('2.3'), new Big('15.7')];const range = variance(numbers); // Returns Big('13.4') (15.7 - 2.3)
Calculates the difference between maximum and minimum values in an array of Big numbers