Java Number Round roundUp(double d)

Here you can find the source of roundUp(double d)

Description

round Up

License

Creative Commons License

Declaration

private static long roundUp(double d) 

Method Source Code

//package com.java2s;
//License from project: Creative Commons License 

public class Main {
    private static long roundUp(double d) {
        return Math.round(d * 10.0) / 10;
    }/*from ww  w  . ja v  a 2  s.  c o  m*/
}

Related

  1. roundToTop(float f)
  2. roundToWord(long value)
  3. roundToZero(float x)
  4. roundTwoDecimals(double value)
  5. roundUp(double a)
  6. roundUP(double d)
  7. roundUp(double n)
  8. roundUp(double n, int precision)
  9. roundUp(double val)