Here you can find the source of floorToLong(float pX)
public static long floorToLong(float pX)
//package com.java2s; public class Main { public static long floorToLong(float pX) { return pX > 0 ? (long) pX : (long) pX - 1; }/*from w ww . j a va 2 s . c o m*/ }