Java Ceil ceil(double x, double y)

Here you can find the source of ceil(double x, double y)

Description

Truncate x up to the nearest y.

License

Open Source License

Declaration

public static double ceil(double x, double y) 

Method Source Code

//package com.java2s;

public class Main {
    /**//from  w ww . j  ava2s.  co  m
     * Truncate x up to the nearest y.
     */
    public static double ceil(double x, double y) {
        return y * Math.ceil((x + .00001) / y);
    }
}

Related

  1. ceil(double value, int decimal)
  2. ceil(double value, int scale)
  3. ceil(double Var1)
  4. ceil(double x)
  5. ceil(double x)
  6. ceil(double[] array)
  7. ceil(final double num)
  8. ceil(final double num)
  9. ceil(float f)