Java Number Round roundUpToTwo(Double number)

Here you can find the source of roundUpToTwo(Double number)

Description

round Up To Two

License

Apache License

Declaration

public static Double roundUpToTwo(Double number) 

Method Source Code

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

public class Main {
    public static Double roundUpToTwo(Double number) {
        return Math.floor(number * 100) / 100.00;
    }/*  ww w  . j a v a  2  s.  co  m*/
}

Related

  1. roundUpToPowerOfTwo(int i)
  2. roundUpToPowerOfTwo(int p_151236_0_)
  3. roundUpToPowerOfTwo(int v)
  4. roundUpToPowerOfTwo(int x)
  5. roundUpToTheNextHighestPowerOf2(int v)
  6. roundValue(Double value)
  7. roundValue(final double value)
  8. roundValues(Double value1, Double value2)
  9. roundValueToUnit(final double graphValue, final double graphUnit, final boolean isMinValue)