Here you can find the source of floor(double var0)
public static int floor(double var0)
//package com.java2s; //License from project: Open Source License public class Main { public static int floor(double var0) { int var2 = (int) var0; return var0 < (double) var2 ? var2 - 1 : var2; }//ww w .j av a 2 s . co m }