Note: Does not work on huge amounts of Longs.
(long... aLongs)
| 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; |