Java Number Round roundUpTo8(final long number)

Here you can find the source of roundUpTo8(final long number)

Description

round Up To

License

Open Source License

Declaration

private static long roundUpTo8(final long number) 

Method Source Code

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

public class Main {
    private static long roundUpTo8(final long number) {
        return ((number + 7) / 8) * 8;
    }//  w  w  w .ja  v a2 s  . c  om
}

Related

  1. roundUpPower2(int v)
  2. roundUpTo(double in, double del)
  3. roundUpTo(int a, int quanta)
  4. roundUpTo(long i, long multiple)
  5. roundUpTo100(int n)
  6. roundUpTo8(long val)
  7. roundUpToMultiple(long val, int factor)
  8. roundUpToNearest(double number, double nearest)
  9. roundUpToNearestEightBytes(long result)