Here you can find the source of floor(float f)
Parameter | Description |
---|
public static int floor(float f)
//package com.java2s; //License from project: Open Source License public class Main { /**/*from ww w . j a va 2 s . c om*/ * Rounds the given number down to an int. * @param float * @returns the floored value */ public static int floor(float f) { return (int) (f - f % 1f); } }