Java floor floor_float(float f)

Here you can find the source of floor_float(float f)

Description

floofloat

License

Open Source License

Declaration

public static int floor_float(float f) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static int floor_float(float f) {
        int i = (int) f;
        return f >= i ? i : i - 1;
    }/* w  w w .  ja  v a  2 s. co m*/
}

Related

  1. floor1e5(double coordinate)
  2. floor2(int a, int preserveDigits)
  3. floor_double(double a)
  4. floor_double(double value)
  5. floor_double_long(double d)
  6. floorAndCrop(final double x, final int min, final int max)
  7. floorData(float[] data, float floor)
  8. floorDay(long milli)
  9. floorDiv(final int x, final int y)