Java Long Number Readable Format convertLongToMega(long value)

Here you can find the source of convertLongToMega(long value)

Description

convert Long To Mega

License

Open Source License

Declaration

private static String convertLongToMega(long value) 

Method Source Code

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

public class Main {
    private static final long MEGA = 1024 * 1024;

    private static String convertLongToMega(long value) {

        long megaValue = value / MEGA;

        String result = Long.toString(megaValue) + " MB";

        return result;

    }// w w w . j a v a2s .  c o m
}

Related

  1. convertBytes(long bytes)
  2. convertBytes(long size)
  3. convertByteToGMKB(long bytes)
  4. convertByteUnit(Long l)
  5. convertHumanSize(long byteSize)
  6. convertMbIntoGb(long megaBytes)
  7. formatBytes(long bts)
  8. formatBytes(long bytes)
  9. formatBytes(long bytes)