Java Number Round roundUpTo100(int n)

Here you can find the source of roundUpTo100(int n)

Description

round Up To

License

Apache License

Declaration

public static int roundUpTo100(int n) 

Method Source Code

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

public class Main {
    public static int roundUpTo100(int n) {
        int rem = n % 100;

        if (rem == 0)
            return n;

        return n + (100 - rem);
    }// ww w.  java2  s.  c om
}

Related

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