Java Double Number Round roundDown(int n, int m)

Here you can find the source of roundDown(int n, int m)

Description

round Down

License

Open Source License

Declaration

public static int roundDown(int n, int m) 

Method Source Code

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

public class Main {
    public static int roundDown(int n, int m) {
        while (n % m != 0)
            n--;//from   ww w  .ja va2  s  .  co  m
        return n;
    }
}

Related

  1. roundDown(double val, int decimals)
  2. roundDown(double value, double units)
  3. roundDown(double value, int gridSize)
  4. roundDown(final float realNumber)
  5. RoundDown(final T number)
  6. roundDown(int number, int mod)
  7. roundDown(int val, int shift)
  8. roundDown(int val, int to)
  9. roundDown(long n, long m)