Here you can find the source of floor(int number, int divisor)
public static int floor(int number, int divisor)
//package com.java2s; //License from project: Open Source License public class Main { public static int floor(int number, int divisor) { return (number / divisor) * divisor; }/* w ww .j a v a 2s . c o m*/ }