MCPcopy Create free account
hub / github.com/GregTech6/gregtech6 / averageUnsignedInts

Method averageUnsignedInts

src/main/java/gregapi/util/UT.java:1200–1205  ·  view source on GitHub ↗

Note: Does not work on huge amounts of Integers.

(int... aInts)

Source from the content-addressed store, hash-verified

1198
1199 /** Note: Does not work on huge amounts of Integers. */
1200 public static int averageUnsignedInts(int... aInts) {
1201 if (aInts == null || aInts.length <= 0) return 0;
1202 long rValue = 0;
1203 for (int aInt : aInts) rValue += unsignI(aInt);
1204 return bindInt(rValue / aInts.length);
1205 }
1206
1207 /** Note: Does not work on huge amounts of Longs. */
1208 public static long averageLongs(long... aLongs) {

Callers

nothing calls this directly

Calls 2

unsignIMethod · 0.95
bindIntMethod · 0.95

Tested by

no test coverage detected