Java floor floor(double x, double y)

Here you can find the source of floor(double x, double y)

Description

Truncate x down to the nearest y.

License

Open Source License

Declaration

public static double floor(double x, double y) 

Method Source Code

//package com.java2s;

public class Main {
    /**//w  w  w .ja  v a2 s.co  m
     * Truncate x down to the nearest y.
     */
    public static double floor(double x, double y) {
        return y * Math.floor((x + .00001) / y);
    }
}

Related

  1. floor(double value, int scale)
  2. floor(double var0)
  3. floor(double x)
  4. floor(double x)
  5. floor(double x)
  6. floor(double[] array)
  7. floor(final double num)
  8. floor(final float val)
  9. floor(final float x)