MCPcopy Index your code
hub / github.com/GregTech6/gregtech6 / averageInts

Method averageInts

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

Note: Does not work on huge amounts of Integers.

(int... aInts)

Source from the content-addressed store, hash-verified

1192
1193 /** Note: Does not work on huge amounts of Integers. */
1194 public static int averageInts(int... aInts) {
1195 if (aInts == null || aInts.length <= 0) return 0;
1196 return bindInt(sum(aInts) / aInts.length);
1197 }
1198
1199 /** Note: Does not work on huge amounts of Integers. */
1200 public static int averageUnsignedInts(int... aInts) {

Callers 1

onServerTickPostMethod · 0.80

Calls 2

bindIntMethod · 0.95
sumMethod · 0.95

Tested by

no test coverage detected