Java tutorial
//package com.java2s; public class Main { public static String formatByteToKB(int size) { float kb = size / 1024f; return String.format("%.2f", kb); } }