Java tutorial
//package com.java2s; public class Main { public static String trasByteToM(long src) { int des = (int) (src /= 1024 * 1024); return String.valueOf(des); } }