Java floor floor(double num)

Here you can find the source of floor(double num)

Description

floor

License

Open Source License

Declaration

public static int floor(double num) 

Method Source Code

//package com.java2s;
// it under the terms of the GNU General Public License as published by

public class Main {
    public static int floor(double num) {
        final int numInt = (int) num;
        return numInt == num ? numInt : numInt - (int) (Double.doubleToRawLongBits(num) >>> 63);
    }//from  w w  w.j av  a 2 s .  c o m
}

Related

  1. floor(double d)
  2. floor(double d)
  3. floor(double d)
  4. floor(double d, int exp)
  5. floor(double d, int p)
  6. floor(double num, int bit)
  7. floor(double number, int decimals)
  8. floor(double value, int decimal)
  9. floor(double value, int scale)