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

Method averageLongs

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

Note: Does not work on huge amounts of Longs.

(long... aLongs)

Source from the content-addressed store, hash-verified

1206
1207 /** Note: Does not work on huge amounts of Longs. */
1208 public static long averageLongs(long... aLongs) {
1209 if (aLongs == null || aLongs.length <= 0) return 0;
1210 return sum(aLongs) / aLongs.length;
1211 }
1212
1213 public static int roundDown(double aNumber) {
1214 int rRounded = (int)aNumber;

Callers

nothing calls this directly

Calls 1

sumMethod · 0.95

Tested by

no test coverage detected