Java floor floorPositive(float value)

Here you can find the source of floorPositive(float value)

Description

Returns the largest integer less than or equal to the specified float.

License

Open Source License

Declaration

static public int floorPositive(float value) 

Method Source Code

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

public class Main {
    /** Returns the largest integer less than or equal to the specified float. This method will only properly floor floats that are
     * positive. Note this method simply casts the float to int. */
    static public int floorPositive(float value) {
        return (int) value;
    }//from ww  w. ja  v  a  2s  .c o  m
}

Related

  1. floorMod(long x, long y)
  2. floorModExt(int dividend, int divisor)
  3. floorModulo(int value, int divisor)
  4. floorPlaneAndHorizToPlanView(final int[][] frameCells, final short frame[], final int h)
  5. floorPlaneToPlanView(int[][] frameCells, final int h)
  6. floorPot(float value)
  7. floorPOT(int n)
  8. floorPowerOf2(final int n)
  9. floorPowerOf2(final int x)