Java Ceil ceil(double d)

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

Description

ceil

License

Open Source License

Declaration

public static final int ceil(double d) 

Method Source Code

//package com.java2s;
// {LICENSE}/*w ww.j av a2s . c o  m*/

public class Main {
    private static final int INT = 16384;
    private static final double CEIL = INT + 0.9999;

    public static final int ceil(double d) {
        return (int) (d + CEIL) - INT;
    }
}

Related

  1. ceil(double a)
  2. ceil(double a, double precision)
  3. ceil(double a, int cutOfDigits)
  4. ceil(double d)
  5. ceil(double d, int exp)
  6. ceil(double d, int p)
  7. ceil(double double1, double double2)