Java Number Round roundUp(long size, int blockSize)

Here you can find the source of roundUp(long size, int blockSize)

Description

round Up

License

Open Source License

Declaration

public static long roundUp(long size, int blockSize) 

Method Source Code

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

public class Main {
    public static long roundUp(long size, int blockSize) {
        return ((size + blockSize - 1) / blockSize) * blockSize;
    }//from   www. ja v a  2s . c  o m
}

Related

  1. roundUp(int val, int to)
  2. roundUp(int x, int blockSizePowerOf2)
  3. roundUp(long n, long m)
  4. roundUp(long number, long mod)
  5. roundUp(long position, long sectionAlignment)
  6. roundUp(long val, long delta)
  7. roundup_2n(long val, int blocksize)
  8. roundUpDivision(final int dividend, final int divider)
  9. roundUpDown(int number, int by)