Java floor floor(double d)

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

Description

floor

License

Open Source License

Declaration

public static final int floor(double d) 

Method Source Code

//package com.java2s;
// {LICENSE}/*from   w  w  w .java 2 s. c o m*/

public class Main {
    private static final int INT = 16384;
    private static final double FLOOR = INT + 0.0000;

    public static final int floor(double d) {
        return (int) (d + FLOOR) - INT;
    }
}

Related

  1. floor(double a)
  2. floor(double a, double precision)
  3. floor(double a, int cutOfDigits)
  4. floor(double a, int n)
  5. floor(double d)
  6. floor(double d)
  7. floor(double d, int exp)
  8. floor(double d, int p)