Here you can find the source of floor_double_long(double d)
public static long floor_double_long(double d)
//package com.java2s; //License from project: Open Source License public class Main { public static long floor_double_long(double d) { long l = (long) d; return d >= (double) l ? l : l - 1L; }/*from w w w . j av a2 s. c om*/ }