Java Byte Value Format bytesToGB(long bytes)

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

Description

bytes To GB

License

Apache License

Declaration

public static float bytesToGB(long bytes) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static final long ONE_GB = 1073741824L;

    public static float bytesToGB(long bytes) {
        return (float) bytes / ONE_GB;
    }//w ww. j  av a  2 s  .  c om
}

Related

  1. bytesToHuman(long bytes)
  2. bytesToHuman(long size)
  3. bytesToHumanReadable(int bytes)
  4. bytesToKBytes(long bytes)