Java Utililty Methods BigInteger Average

List of utility methods to do BigInteger Average

Description

The list of methods to do BigInteger Average are organized into topic(s).

Method

BigIntegeraverage(BigInteger... integers)
Returns the average or mean from the given list of integer numbers.
BigInteger result = null;
if (integers != null) {
    int length = 0;
    for (BigInteger integer : integers) {
        if (integer != null) {
            if (result == null) {
                result = integer;
            } else {
...
BigIntegeraverage(BigInteger... values)
Computes the average of an array of BigIntegers (ignoring null values).
int count = 0;
BigInteger total = BigInteger.ZERO;
for (BigInteger value : values) {
    if (value == null) {
        continue;
    count++;
    total = total.add(value);
...