Here you can find the source of floor_double(double value)
public static int floor_double(double value)
//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; } }