Java Ceil ceil(double value, int scale)

Here you can find the source of ceil(double value, int scale)

Description

Ceil.

License

Apache License

Parameter

Parameter Description
value the value
scale the scale

Return

the double

Declaration

public static double ceil(double value, int scale) 

Method Source Code

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

public class Main {
    /**/*w w  w.j a va2 s  . com*/
     * Ceil.
     *
     * @param value
     *            the value
     * @param scale
     *            the scale
     * @return the double
     */
    public static double ceil(double value, int scale) {
        double power = Math.pow(10, scale);
        return Math.ceil(value * power) / power;
    }
}

Related

  1. ceil(double d, int exp)
  2. ceil(double d, int p)
  3. ceil(double double1, double double2)
  4. ceil(double num, int bit)
  5. ceil(double value, int decimal)
  6. ceil(double Var1)
  7. ceil(double x)
  8. ceil(double x)
  9. ceil(double x, double y)