Here you can find the source of BytesToMB(long kb)
Parameter | Description |
---|---|
kb | in |
public static long BytesToMB(long kb)
//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; } }