字节换算单位

这是国处牛人写的一个比较牛的算法,收藏下算法 public static String humanReadableByteCount(long bytes) {         int unit = 1024;         if (bytes < unit) return bytes + " B";         int exp = (int) (Math.log(bytes) / Math
相关文章
相关标签/搜索