Here you can find the source of floor(float a)
Parameter | Description |
---|---|
a | the number |
public static int floor(float a)
//package com.java2s; public class Main { /**//from www . j ava2 s . co m * Rounds the number down * @param a the number * @return a rounded down number */ public static int floor(float a) { return (int) a; } /** * Rounds the number down * @param a the number * @return a rounded down number */ public static long floor(double a) { return (long) a; } }