Java tutorial
//package com.java2s; public class Main { /** * Rounds off downwards to the next distinct value. * * @param value The value to round off * @return The rounded value */ public static double getFloor(double value) { return Math.floor(value); } }