Java floor floorToLong(float pX)

Here you can find the source of floorToLong(float pX)

Description

floor To Long

License

Open Source License

Declaration

public static long floorToLong(float pX) 

Method Source Code

//package com.java2s;

public class Main {
    public static long floorToLong(float pX) {
        return pX > 0 ? (long) pX : (long) pX - 1;
    }/*from   w  ww . j  a va 2  s  .  c o  m*/
}

Related

  1. floorPowerOf2(int n)
  2. floorPowerOfTwo(final int a)
  3. floorSec(long milli)
  4. floorSec(long valueMs)
  5. floorSqrt(long i)
  6. floorToNearestNumberDivisibleByFour(long number)
  7. floorToPowerofTwo(int i)
  8. floorTs(long timestamp, int aggregationWindow)
  9. floory(double a, double precision)