Java Number Round roundUpToNearestEightBytes(long result)

Here you can find the source of roundUpToNearestEightBytes(long result)

Description

round Up To Nearest Eight Bytes

License

Open Source License

Declaration

private static long roundUpToNearestEightBytes(long result) 

Method Source Code

//package com.java2s;

public class Main {
    private static long roundUpToNearestEightBytes(long result) {
        if ((result % 8) != 0) {
            result += 8 - (result % 8);/*from   w  ww  . ja va 2  s .co  m*/
        }
        return result;
    }
}

Related

  1. roundUpTo100(int n)
  2. roundUpTo8(final long number)
  3. roundUpTo8(long val)
  4. roundUpToMultiple(long val, int factor)
  5. roundUpToNearest(double number, double nearest)
  6. roundUpToNearestPowerOfTwoIfGreaterThanZero(final int value)
  7. roundUpToPowerOf2(int number)
  8. roundUpToPowerOf2(long val)
  9. roundUpToPowerOf2Factor(long val, long factor)