Java floor floor_double(double value)

Here you can find the source of floor_double(double value)

Description

Returns the greatest integer less than or equal to the double argument

License

Open Source License

Declaration

public static int floor_double(double value) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    /**/*  w w w.  j a  va 2 s .c om*/
     * Returns the greatest integer less than or equal to the double argument
     */
    public static int floor_double(double value) {
        int i = (int) value;
        return value < (double) i ? i - 1 : i;
    }
}

Related

  1. floor(String input)
  2. floor10(double a)
  3. floor1e5(double coordinate)
  4. floor2(int a, int preserveDigits)
  5. floor_double(double a)
  6. floor_double_long(double d)
  7. floor_float(float f)
  8. floorAndCrop(final double x, final int min, final int max)
  9. floorData(float[] data, float floor)