Java Byte Value Format byteToHumanreadable(long b)

Here you can find the source of byteToHumanreadable(long b)

Description

byte To Humanreadable

License

Open Source License

Declaration

public static String byteToHumanreadable(long b) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static String byteToHumanreadable(long b) {
        return (b / 1048576) + " MB";
    }/*w  w w .ja v a  2  s  .c om*/
}

Related

  1. bytesToMB(long sizeInBytes)
  2. bytesToMBString(long bytes)
  3. bytesToMegabytes(long bytes)
  4. bytesToMegaBytes(long bytes)
  5. byteToHuman(long bytes, boolean si)
  6. byteToMeg(long bytes)