Java Byte Value Format bytesToKBytes(long bytes)

Here you can find the source of bytesToKBytes(long bytes)

Description

bytes To K Bytes

License

Open Source License

Declaration

public static long bytesToKBytes(long bytes) 

Method Source Code

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

public class Main {

    public static long bytesToKBytes(long bytes) {

        long kBytes = bytes / 1024;

        long remainder = bytes % 1024;

        if (remainder > 0)
            kBytes += 1;//from   w ww . j  a v  a  2 s  .c  o  m

        return kBytes;
    }
}

Related

  1. bytesToGB(long bytes)
  2. bytesToHuman(long bytes)
  3. bytesToHuman(long size)
  4. bytesToHumanReadable(int bytes)
  5. bytesToMagaBytes(long bytes)
  6. BytesToMB(long kb)
  7. bytesToMB(long sizeInBytes)
  8. bytesToMBString(long bytes)