Here you can find the source of floor_float(float f)
public static int floor_float(float f)
//package com.java2s; //License from project: Open Source License public class Main { public static int floor_float(float f) { int i = (int) f; return f >= i ? i : i - 1; }/* w w w . ja v a 2 s. co m*/ }