java 中的数学运算

利用google Guava工具集

1. 求以2为底的对数

LongMath.log2(value, RoundingMode.FLOOR);

猜你喜欢

转载自sunxboy.iteye.com/blog/1993882