Java Byte Value Format BytesToMB(long kb)

Here you can find the source of BytesToMB(long kb)

Description

Yes, I'm that lazy

License

BSD License

Parameter

Parameter Description
kb in

Return

MB out

Declaration

public static long BytesToMB(long kb) 

Method Source Code

//package com.java2s;
// Licensed under the terms of the New-BSD license. Please see LICENSE file in the project root for terms.

public class Main {
    /**/*  w  w w  . j  a v  a2s  . com*/
     * Yes, I'm that lazy
     * 
     * @param kb in
     * @return MB out
     */
    public static long BytesToMB(long kb) {
        return KB(kb) / 1024;
    }

    /**
     * Yes, I'm that lazy
     * 
     * @param bytes in
     * @return KB out
     */
    public static long KB(long bytes) {
        return bytes / 1024;
    }
}

Related

  1. bytesToHuman(long bytes)
  2. bytesToHuman(long size)
  3. bytesToHumanReadable(int bytes)
  4. bytesToKBytes(long bytes)
  5. bytesToMagaBytes(long bytes)
  6. bytesToMB(long sizeInBytes)
  7. bytesToMBString(long bytes)
  8. bytesToMegabytes(long bytes)
  9. bytesToMegaBytes(long bytes)